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 'um_u'; define('UM_U', 'foo', true); define('Um_u', 'foo'); echo "\n"; echo 'um_m'; define('UM_M', 'foo'); define('Um_m', '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); echo "\n"; echo "\n"; echo 'lm_l'; define('lm_l', 'foo', true); define('Lm_l', 'foo'); echo "\n"; echo 'lm_m'; define('lm_m', 'foo'); define('Lm_m', 'foo', true); echo "\n"; echo "\n"; echo 'mu_m'; define('Mu_m', 'foo', true); define('MU_M', 'foo'); echo "\n"; echo 'mu_u'; define('Mu_u', 'foo'); define('MU_U', 'foo', true); echo "\n"; echo "\n"; echo 'ml_m'; define('Ml_m', 'foo', true); define('ml_m', 'foo'); echo "\n"; echo 'ml_l'; define('Ml_l', 'foo'); define('ml_l', 'foo', true); echo "\n";
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/OP4kG on line 6 ul_l um_u um_m lu_l lu_u Notice: Constant lu_u already defined in /in/OP4kG on line 35 lm_l lm_m Notice: Constant lm_m already defined in /in/OP4kG on line 47 mu_m mu_u ml_m Notice: Constant ml_m already defined in /in/OP4kG on line 66 ml_l
Output for hhvm-3.10.0 - 3.12.0
ul_u Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 5 ul_l Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 11 um_u Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 17 um_m Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 23 lu_l Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 29 lu_u Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 35 lm_l Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 41 lm_m Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 47 mu_m Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 53 mu_u Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 59 ml_m Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 65 ml_l Warning: Case insensitive constant names are not supported in HipHop in /in/OP4kG on line 71
Output for 4.3.7 - 4.3.8, 5.0.0
ul_u Notice: Constant already defined in /in/OP4kG on line 6 ul_l um_u um_m lu_l lu_u Notice: Constant lu_u already defined in /in/OP4kG on line 35 lm_l lm_m Notice: Constant lm_m already defined in /in/OP4kG on line 47 mu_m mu_u ml_m Notice: Constant already defined in /in/OP4kG on line 66 ml_l