3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo() { public function execute() { echo "Hello"; } } class Bar extends Foo { public function execute($name) { parent::execute($name); echo $name; } } $bar = new Bar(); $bar->execute();
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '(', expecting '{' in /in/lG2a4 on line 4
Process exited with code 255.