3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); $c = $c->bindTo(null); var_dump($c());
Output for 7.0.0 - 7.2.0
Warning: Cannot unbind $this of internal method in /in/KVmtI on line 4 Fatal error: Uncaught Error: Function name must be a string in /in/KVmtI:5 Stack trace: #0 {main} thrown in /in/KVmtI on line 5
Process exited with code 255.
Output for 5.6.15 - 5.6.28
Warning: Cannot unbind $this of internal method in /in/KVmtI on line 4 Fatal error: Function name must be a string in /in/KVmtI on line 5
Process exited with code 255.
Output for 5.4.0 - 5.6.14

Process exited with code 139.