3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Klass { public $method; } $c = new Klass(); $c->not_exists = 1; $c->method = function() {var_dum($this)}; call_user_func($c->method);
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '}' in /in/UMq33 on line 8
Process exited with code 255.