3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function inverse($x){ return 1/$x; } echo inverse(5) . "\n"; echo inverse(0) . "\n"; ?>
Output for 7.0.0 - 7.1.0
0.2 Warning: Division by zero in /in/duOMF on line 4 INF
Output for 4.3.0 - 5.6.28
0.2 Warning: Division by zero in /in/duOMF on line 4