3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("DEBUG", true); error_reporting(defined("DEBUG") ? E_ALL : 0); $a = 1/0; define("DEBUG", false); error_reporting(defined("DEBUG") ? E_ALL : 0); $a = 1/0;
based on Vcis0
Output for 4.3.0 - 4.3.6, 4.3.9 - 4.4.9, 5.0.1 - 7.2.0
Warning: Division by zero in /in/5AoIA on line 4 Notice: Constant DEBUG already defined in /in/5AoIA on line 6 Warning: Division by zero in /in/5AoIA on line 8
Output for 4.3.7 - 4.3.8, 5.0.0
Warning: Division by zero in /in/5AoIA on line 4 Notice: Constant already defined in /in/5AoIA on line 6 Warning: Division by zero in /in/5AoIA on line 8