3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function myTest() { static $x=0; echo $x; $x++; } myTest(); echo ; myTest(); echo ; myTest(); echo ; myTest(); echo ; myTest(); ?>
Output for 5.1.0 - 5.4.29
Parse error: syntax error, unexpected ';' in /in/WSrbd on line 9
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected ';' in /in/WSrbd on line 9
Process exited with code 255.
Output for 4.3.0 - 4.4.9
01234