3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php function sum($x,$y) { $z=$x+$y; return $z; } echo "5 + 10 = " . sum(5,10) . "<br>"; echo "7 + 13 = " . sum(7,13) . "<br>"; echo "2 + 4 = " . sum(2,4); ?> </body> </html>
Output for 4.3.0 - 7.1.0
<!DOCTYPE html> <html> <body> 5 + 10 = 15<br>7 + 13 = 20<br>2 + 4 = 6 </body> </html>