3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://user:pass@host.example.com:1234/path;p=1?query=2&r[]=3#fragment'; var_dump( parse_url( $url ) ); $url = 'https://user:pass@[::FFFF::127.0.0.1]:1234/path;p=1?query=2&r[]=3#fragment'; var_dump( parse_url( $url ) );
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { ["scheme"]=> string(5) "https" ["host"]=> string(16) "host.example.com" ["port"]=> int(1234) ["user"]=> string(4) "user" ["pass"]=> string(4) "pass" ["path"]=> string(9) "/path;p=1" ["query"]=> string(13) "query=2&r[]=3" ["fragment"]=> string(8) "fragment" } array(8) { ["scheme"]=> string(5) "https" ["host"]=> string(19) "[::FFFF::127.0.0.1]" ["port"]=> int(1234) ["user"]=> string(4) "user" ["pass"]=> string(4) "pass" ["path"]=> string(9) "/path;p=1" ["query"]=> string(13) "query=2&r[]=3" ["fragment"]=> string(8) "fragment" }

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