3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function Baz($uri) { $uri = parse_url($uri); array_walk( $uri, function($value, $name) { $this->$component = $value; } ); } } $bar = new Bar(); $bar->Baz('http://foo.bar/test?q=v'); var_dump($bar);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $component in /in/Grslh on line 9 Deprecated: Creation of dynamic property Bar::$ is deprecated in /in/Grslh on line 9 Warning: Undefined variable $component in /in/Grslh on line 9 Warning: Undefined variable $component in /in/Grslh on line 9 Warning: Undefined variable $component in /in/Grslh on line 9 object(Bar)#1 (1) { [""]=> string(3) "q=v" }

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:
33.88 ms | 402 KiB | 8 Q