3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php 1/0; intdiv(1,0); 1%0;
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/IfnFp on line 3 Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/IfnFp:4 Stack trace: #0 /in/IfnFp(4): intdiv(1, 0) #1 {main} thrown in /in/IfnFp on line 4
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Warning: Division by zero in /in/IfnFp on line 3 Fatal error: Call to undefined function intdiv() in /in/IfnFp on line 4
Process exited with code 255.