3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function factor($i) { if ($i > 1) { return $i * factor($i-1); } return 1; } factor(4)
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected end of file in /in/4Ruou on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected $end in /in/4Ruou on line 10
Process exited with code 255.