3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(constant('dsfosdfpodsof\\dsf\\sdfdsfsd\\null')); var_dump(constant('dsfosdfpodsof\\dsf\\sdfdsfsd\\NULL')); var_dump(constant('dsfosdfpodsof\\dsf\\sdfdsfsd\\nuLL'));
based on kRGWt
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\null in /in/hCjvs on line 3 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\NULL in /in/hCjvs on line 4 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\nuLL in /in/hCjvs on line 5 NULL
Output for 4.3.0 - 4.3.1
Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\null in /in/hCjvs on line 3 NULL Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\NULL in /in/hCjvs on line 4 NULL Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\nuLL in /in/hCjvs on line 5 NULL