3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(parse_url('127.0.0.1')); var_dump(parse_url('127.0.0.1:443')); var_dump(parse_url('owncloud.com:3232')); var_dump(parse_url('owncloud.com')); var_dump(parse_url('[1fff:0:a88:85a3::ac1f]'));
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
array(1) { ["path"]=> string(9) "127.0.0.1" } array(2) { ["host"]=> string(9) "127.0.0.1" ["port"]=> int(443) } array(2) { ["host"]=> string(12) "owncloud.com" ["port"]=> int(3232) } array(1) { ["path"]=> string(12) "owncloud.com" } array(1) { ["path"]=> string(23) "[1fff:0:a88:85a3::ac1f]" }

preferences:
85.4 ms | 410 KiB | 5 Q