3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo{ private $salutation = 'Hello'; } $c = function($who) { return "{$this->salutation} $who"; }; echo $c->call(new Foo,'Wide World');
based on e2EKF
Output for 7.0.0 - 7.2.0
Hello Wide World
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/a58P8 on line 8
Process exited with code 255.