3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('::', true); var_dump(constant('::'));
based on jpuDC
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: Class constants cannot be defined or redefined in /in/pD6hV on line 3 Warning: constant(): Couldn't find constant :: in /in/pD6hV on line 4 NULL
Output for hhvm-3.22.0
Warning: constant(): Couldn't find constant :: in /in/pD6hV on line -1 NULL
Output for hhvm-3.18.5 - 3.21.3
Warning: constant(): Couldn't find constant :: in /in/pD6hV on line 4 NULL