3v4l.org

run code in 300+ PHP versions simultaneously
<!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>
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.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ';' in /in/AVKbi on line 7
Process exited with code 255.

preferences:
169.56 ms | 1395 KiB | 24 Q