3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $b = "a"; $c = &$$b; while ( !! ($c % 42) ) { $a++; } var_dump($c % 0);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/8UZMu:9 Stack trace: #0 {main} thrown in /in/8UZMu on line 9
Process exited with code 255.
Output for 5.4.0 - 5.6.26
Warning: Division by zero in /in/8UZMu on line 9 bool(false)