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->$name = $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
Deprecated: Creation of dynamic property Bar::$scheme is deprecated in /in/k5eK4 on line 9 Deprecated: Creation of dynamic property Bar::$host is deprecated in /in/k5eK4 on line 9 Deprecated: Creation of dynamic property Bar::$path is deprecated in /in/k5eK4 on line 9 Deprecated: Creation of dynamic property Bar::$query is deprecated in /in/k5eK4 on line 9 object(Bar)#1 (4) { ["scheme"]=> string(4) "http" ["host"]=> string(7) "foo.bar" ["path"]=> string(5) "/test" ["query"]=> 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:
60.86 ms | 402 KiB | 8 Q