3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); echo "ul_u"; define('UL_U', 'foo', true); define('ul_u', 'foo'); echo "\n"; echo "ul_l"; define('UL_L', 'foo'); define('ul_l', 'foo', true); echo "\n"; echo "\n"; echo "lu_l"; define('LU_L', 'foo', true); define('lu_l', 'foo'); echo "\n"; echo "lu_u"; define('LU_U', 'foo'); define('lu_u', 'foo', true);
Output for 4.3.0 - 4.3.6, 4.3.9 - 4.4.9, 5.0.1 - 5.6.28, 7.0.0 - 7.1.0
ul_u Notice: Constant ul_u already defined in /in/dV3vp on line 6 ul_l lu_l Notice: Constant lu_l already defined in /in/dV3vp on line 15 lu_u
Output for hhvm-3.10.0 - 3.12.0
ul_u Warning: Case insensitive constant names are not supported in HipHop in /in/dV3vp on line 5 ul_l Warning: Case insensitive constant names are not supported in HipHop in /in/dV3vp on line 10 lu_l Warning: Case insensitive constant names are not supported in HipHop in /in/dV3vp on line 14 lu_u Warning: Case insensitive constant names are not supported in HipHop in /in/dV3vp on line 19
Output for 4.3.7 - 4.3.8, 5.0.0
ul_u Notice: Constant already defined in /in/dV3vp on line 6 ul_l lu_l Notice: Constant already defined in /in/dV3vp on line 15 lu_u