3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php echo "5 + 10 = ".sum(5,10 ."<br>"; echo "7 + 13 = ".sum(7,13)."<br>"; echo "2 + 4 = ".sum(2,4); function sum($x, $y) { $z = $x + $y; return $z; } ?> </body> </html>
based on guar2
Output for 7.0.0
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/AVKbi on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected ';' in /in/AVKbi on line 7
Process exited with code 255.