3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { echo 10/0; } catch (Error $e) { echo "Just now caught error: {$e->getMessage()}\n"; } try { echo intdiv(10,0),"\n"; } catch (Error $e) { echo "\nJust now caught error: {$e->getMessage()}\n"; }
based on KUfT8
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/ZTIe5 on line 4 INF Just now caught error: Division by zero
Output for 5.3.19 - 5.6.28
Warning: Division by zero in /in/ZTIe5 on line 4 Fatal error: Call to undefined function intdiv() in /in/ZTIe5 on line 10
Process exited with code 255.