3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = (object) ["\0Foo\0bar" => 'baz']; var_dump(Closure::bind(function () { return $this->baz; }, $foo, 'Foo')->__invoke());
based on 1vN6X
Output for 7.0.0 - 7.2.0
Warning: Class 'Foo' not found in /in/ij63S on line 7 Fatal error: Uncaught Error: Call to a member function __invoke() on null in /in/ij63S:7 Stack trace: #0 {main} thrown in /in/ij63S on line 7
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Warning: Class 'Foo' not found in /in/ij63S on line 7 Fatal error: Call to a member function __invoke() on null in /in/ij63S on line 7
Process exited with code 255.
Output for 5.4.11 - 5.5.35
Warning: Class 'Foo' not found in /in/ij63S on line 7 Fatal error: Call to a member function __invoke() on a non-object in /in/ij63S on line 7
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ij63S on line 3
Process exited with code 255.