3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a {} $x = (new ReflectionMethod("Closure", "bindTo"))->getClosure(function() {}); $x->call(new a);
Output for 7.1.0 - 7.2.0
Warning: Cannot bind method Closure::bindTo() to object of class a in /in/XPthD on line 5
Output for 7.0.0 - 7.0.20
Warning: Cannot bind internal method Closure::bindTo() to object of class a in /in/XPthD on line 5
Output for 5.4.8 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/XPthD on line 5
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/XPthD on line 4
Process exited with code 255.