3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function __construct($foo, $bar, $foo) {} } $r = new ReflectionClass('Foo'); $params = $r->getConstructor()->getParameters(); var_export($params[2]->name); echo "\n\n"; echo json_encode($params[2]->name[0]); var_export($params[2]->name[0] == "\u0000"));
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected ')' in /in/pptfu on line 14
Process exited with code 255.