3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = function(){ echo 'blee'; }; $g = f; $f->__invoke(); $f(); $f->call($g);
based on FjTbU
Output for 7.2.0
Warning: Use of undefined constant f - assumed 'f' (this will throw an Error in a future version of PHP) in /in/cCaJH on line 4 bleeblee Warning: Closure::call() expects parameter 1 to be object, string given in /in/cCaJH on line 7
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant f - assumed 'f' in /in/cCaJH on line 4 bleeblee Warning: Closure::call() expects parameter 1 to be object, string given in /in/cCaJH on line 7
Output for 5.3.19 - 5.6.28
Notice: Use of undefined constant f - assumed 'f' in /in/cCaJH on line 4 bleeblee Fatal error: Call to undefined method Closure::call() in /in/cCaJH on line 7
Process exited with code 255.