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 Dv59R
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function it() in /in/XnvX3(15) : eval()'d code:6 Stack trace: #0 /in/XnvX3(15) : eval()'d code(13): {closure}() #1 /in/XnvX3(15): eval() #2 {main} thrown in /in/XnvX3(15) : eval()'d code on line 6
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function it() in /in/XnvX3(15) : eval()'d code on line 6
Process exited with code 255.