3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function myMethod($foo, ...$args) { print $foo; print_r($args); } } $myClass = new MyClass(); $myClass->myMethod("Hi", "here", "are","some", "args"); class ChildClass extends MyClass { public function myMethod($foo) { print $foo; } }
Output for git.master, git.master_jit
Fatal error: Declaration of ChildClass::myMethod($foo) must be compatible with MyClass::myMethod($foo, ...$args) in /in/rEU6t on line 14
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:
147.61 ms | 1457 KiB | 7 Q