3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval(' $closure = function(){ /* This template demonstrates a typical piece of code that will execute normally under the default PHPSandbox configuration */ it(); function it() { echo \'This is it\'; } }; if(method_exists($closure, "bindTo")){ $closure = $closure->bindTo(null); } return $closure();');
based on kYDAR
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function it() in /in/UgQ6Y(16) : eval()'d code:7 Stack trace: #0 /in/UgQ6Y(16) : eval()'d code(14): {closure}() #1 /in/UgQ6Y(16): eval() #2 {main} thrown in /in/UgQ6Y(16) : eval()'d code on line 7
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function it() in /in/UgQ6Y(16) : eval()'d code on line 7
Process exited with code 255.