3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdclass( protected function __invoke() {});//function() {}; var_dump(is_object($a)); $a(); exit; function a($a) { } $b = 3; a($b);
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected 'protected' (T_PROTECTED), expecting ')' in /in/1Gn8f on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PROTECTED, expecting ')' in /in/1Gn8f on line 2
Process exited with code 255.