3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'http://example.com/path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($x)); $y = 'path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($y));
Output for git.master, rfc.partials
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["path"]=> string(18) "/path/to/somewhere" ["query"]=> string(67) "param1=x&param2=http://another.example.com/path/to/another/example/" } array(2) { ["path"]=> string(17) "path/to/somewhere" ["query"]=> string(67) "param1=x&param2=http://another.example.com/path/to/another/example/" }

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:
12.23 ms | 459 KiB | 5 Q