3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a extends Closure{} var_dump(new a);
based on C8Ro0
Output for 5.3.0 - 5.4.32
Fatal error: Class a may not inherit from final class (Closure) in /in/8OiUY on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'Closure' not found in /in/8OiUY on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Class a: Cannot inherit from undefined class closure in /in/8OiUY on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Class a: Cannot inherit from undefined class closure in /in/8OiUY on line 3