3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL|E_STRICT); class Foo {} class Hoge { public function aaa(Foo $foo, $piyo) { var_dump($foo); } } class Bar extends Hoge { public function aaa($foo = null) { parent::aaa($foo, 'aaa'); } } $hoge = new Hoge(); $hoge->aaa(new Foo(), 'aaa'); $bar = new Bar(); $bar->aaa(new Foo());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Declaration of Bar::aaa($foo = null) must be compatible with Hoge::aaa(Foo $foo, $piyo) in /in/0EJ6s on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.17 ms | 401 KiB | 8 Q