3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0.0; var_dump(1/$a); var_dump(1 % $a);
based on pLK4I
Output for 7.0.0 - 7.2.0
Warning: Division by zero in /in/tmjlk on line 4 float(INF) Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/tmjlk:5 Stack trace: #0 {main} thrown in /in/tmjlk on line 5
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Warning: Division by zero in /in/tmjlk on line 4 bool(false) Warning: Division by zero in /in/tmjlk on line 5 bool(false)