3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*trait Foo { private $name = '123'; } class Bar { use Foo; private $name = '321'; public function getName(){echo $this->name;} } $bar = new Bar(); $bar->getName();*/ /*echo false; class Faz {} class Baz extends Faz {} interface Foo {public function du(Faz $param);} class A implements Foo { public function du(Baz $param){ echo false; } }*//* $i = 5; echo $i++; echo $i;*/ namespace Bar; function strlen($string){return 5;} namespace Foo; use Bar; echo strlen('Baz'); var_dump(array_values(true));
Output for git.master, git.master_jit
3 Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, bool given in /in/Pgmla:40 Stack trace: #0 /in/Pgmla(40): array_values(true) #1 {main} thrown in /in/Pgmla on line 40
Process exited with code 255.
Output for rfc.property-hooks
3 Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, true given in /in/Pgmla:40 Stack trace: #0 /in/Pgmla(40): array_values(true) #1 {main} thrown in /in/Pgmla on line 40
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:
42.66 ms | 401 KiB | 8 Q