3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try{ intdiv(1,0); }catch(ErrorException $e){ echo $e; }
based on TqGvi
Output for 7.0.30 - 7.3.0beta1
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/kjHvP:4 Stack trace: #0 /in/kjHvP(4): intdiv(1, 0) #1 {main} thrown in /in/kjHvP on line 4
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/kjHvP:-1 Stack trace: #0 /in/kjHvP(-1): intdiv() #1 {main}
Process exited with code 255.
Output for hhvm-3.21.3
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/kjHvP:4 Stack trace: #0 /in/kjHvP(4): intdiv() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.5
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/kjHvP:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Fatal error: Call to undefined function intdiv() in /in/kjHvP on line 4
Process exited with code 255.