Problem
bin/serve.php always uses VM (Runtime → lib/VM.php). Dev servers for Zend PHP often use OPcache; we have JIT (#153 cache) but no serve integration.
Goal
phpc serve --jit 127.0.0.1:8080 examples/001-SimpleWeb
Compiles .php scripts with bin/jit.php on first hit, caches (#153), falls back to VM on compile error.
Tasks
Acceptance criteria
Second request to same script is faster than first; output matches VM.
Dependencies
Files
bin/serve.php, bin/phpc.php, lib/Runtime.php
Problem
bin/serve.phpalways uses VM (Runtime→lib/VM.php). Dev servers for Zend PHP often use OPcache; we have JIT (#153 cache) but no serve integration.Goal
Compiles
.phpscripts withbin/jit.phpon first hit, caches (#153), falls back to VM on compile error.Tasks
bin/serve.php/phpc serve --jitAcceptance criteria
Second request to same script is faster than first; output matches VM.
Dependencies
Files
bin/serve.php,bin/phpc.php,lib/Runtime.php