3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class MyClosure extends \Closure { public static function __set_state(array $array) { echo 'function(){}'; } } $closure = new MyClosure(); echo (string) $closure;
Output for 5.3.0 - 5.4.25
Fatal error: Class MyClosure may not inherit from final class (Closure) in /in/uUThS on line 9
Process exited with code 255.