3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); echo "1\n"; define('BBB', 1, true); define('bbb', 2); define('Bbb', 3); echo "2\n"; define('CCC', 1); define('ccc', 2, true); define('Ccc', 3); echo "3\n"; define('DDD', 1); define('ddd', 2); define('Ddd', 3, true);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
1 Notice: Constant bbb already defined in /in/6SfG7 on line 6 2 3 Notice: Constant ddd already defined in /in/6SfG7 on line 15
Output for hhvm-3.10.0 - 3.12.0
1 Warning: Case insensitive constant names are not supported in HipHop in /in/6SfG7 on line 5 2 Warning: Case insensitive constant names are not supported in HipHop in /in/6SfG7 on line 10 3 Warning: Case insensitive constant names are not supported in HipHop in /in/6SfG7 on line 15
Output for 4.3.0 - 4.3.6, 4.3.9 - 4.4.9, 5.0.1 - 5.2.2
1 <br /> <b>Notice</b>: Constant bbb already defined in <b>/in/6SfG7</b> on line <b>6</b><br /> 2 3 <br /> <b>Notice</b>: Constant ddd already defined in <b>/in/6SfG7</b> on line <b>15</b><br />
Output for 4.3.7 - 4.3.8, 5.0.0
1 <br /> <b>Notice</b>: Constant already defined in <b>/in/6SfG7</b> on line <b>6</b><br /> 2 3 <br /> <b>Notice</b>: Constant ddd already defined in <b>/in/6SfG7</b> on line <b>15</b><br />