3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Lambda { private $limit = 5; } $lambda = new Lambda(); $closure = function() { $this->limit+= 5; }; $closure->call($lambda);
based on 1hUvk
Output for 7.0.0 - 7.2.0
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/Dbi4l on line 13
Process exited with code 255.