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 XnvX3
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
This is it