3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myTest(); static $x=0; echo "$x;" $x++; } myTest(); ?>
Output for 5.6.30, 7.0.0 - 7.3.0beta2
Parse error: syntax error, unexpected ';', expecting '{' in /in/9317R on line 2
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Global function myTest() must contain a body in /in/9317R:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.21.3
Fatal error: Uncaught Error: Global function myTest() must contain a body in /in/9317R:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.0
Fatal error: Uncaught Error: Global function myTest() must contain a body in /in/9317R:2 Stack trace: #0 {main}
Process exited with code 255.