3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo() { public function __isset($name) {echo 'isset'; return false;} public function __set($name, $value) {echo 'set';} public function __get($name) {echo 'get'; return NULL;} public function __unset($name) {echo 'unset';} } $x = new foo; $y = 'bar'; var_dump(is_callable($x->{$y}));
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '(', expecting '{' in /in/YjKDN on line 3
Process exited with code 255.