3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo foo(); define('SPIDERMAN','peter parker'); function foo () { $x = 'spiderman is ' . SPIDERMAN; return $x; } ?>
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant SPIDERMAN - assumed 'SPIDERMAN' in /in/6RsWp on line 8 spiderman is SPIDERMAN