3v4l.org

run code in 200+ 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 eaUao
Output for 4.3.2 - 5.6.30, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.17.3, 7.0.0 - 7.2.0
Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\null in /in/kRGWt on line 3 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\NULL in /in/kRGWt on line 4 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\nuLL in /in/kRGWt on line 5 NULL
Output for hhvm-3.12.14
Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\null in /in/kRGWt on line 3 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\NULL in /in/kRGWt on line 4 NULL Warning: constant(): Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\nuLL in /in/kRGWt on line 5 NULL
Process exited with code 137.
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/kRGWt on line 3 NULL Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\NULL in /in/kRGWt on line 4 NULL Warning: constant() [http://www.php.net/function.constant]: Couldn't find constant dsfosdfpodsof\dsf\sdfdsfsd\nuLL in /in/kRGWt on line 5 NULL