3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Haha { const HEH='wow'; } $nest='HEH'; $nest2='nest'; echo constant('Haha::'.$$nest2);
based on 4NI54
Output for 5.6.38, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.2.10
wow