This study evaluates the performance of Representational State Transfer (REST) APIs built with Laravel FrankenPHP and Next.js inside a resource-limited Docker container (1 vCPU and 1000 MB RAM). A quantitative load test with up to 500 virtual users was run in K6 across eight operational scenarios, measuring response time, throughput, resource utilisation, and error rate. Next.js reached a throughput of 33.57 RPS, but its peak memory rose to 770 MB (77% of capacity) and its error rate was 3.4%, exceeding the 1% tolerance. Laravel FrankenPHP reached 31.48 RPS with a peak memory of 210 MB (21% of capacity) and an error rate of 0.6%, which satisfies the criterion. Both frameworks exceeded the 95th and 99th percentile response-time thresholds at peak load. In conclusion, under the tested container and resource configuration, the persistent worker-pool runtime of FrankenPHP offers better memory efficiency and operational reliability than Next.js, although both suffer severe queuing at 500 virtual users.