3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( parse_url( 'http://127.0.0.1:80' ), parse_url( 'http://[::1]:80' ), parse_url( 'http://127.0.0.1' ), // Local IPv4 parse_url( 'http://104.205.87.98' ), // Public IPv4 parse_url( 'http://201.152.36.103:58749' ), // IPv4 with port parse_url( 'http://1fff:0:a88:85a3::ac1f' ), // IPv6 parse_url( 'http://[1fff:0:a88:85a3::ac1f]:8001' ) // IPv6 with port );
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "127.0.0.1" ["port"]=> int(80) } array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(5) "[::1]" ["port"]=> int(80) } array(2) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "127.0.0.1" } array(2) { ["scheme"]=> string(4) "http" ["host"]=> string(13) "104.205.87.98" } array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(14) "201.152.36.103" ["port"]=> int(58749) } bool(false) array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(23) "[1fff:0:a88:85a3::ac1f]" ["port"]=> int(8001) }

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