3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = function() { p($this->name); }; class F { private $name = 'F'; } $f->call(new F);
based on 5mo2j
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function p() in /in/roHgD:4 Stack trace: #0 [internal function]: F->{closure}() #1 /in/roHgD(11): Closure->call(Object(F)) #2 {main} thrown in /in/roHgD on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined method Closure::call() in /in/roHgD on line 11
Process exited with code 255.