3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( parse_url( '//fonts.googleapis.com/css?family=Open+Sans:400' ) ); var_dump( parse_url( '//fonts.googleapis.com/css?family=Open+Sans:400&subset=latin' ) );
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 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(3) { ["host"]=> string(20) "fonts.googleapis.com" ["path"]=> string(4) "/css" ["query"]=> string(20) "family=Open+Sans:400" } array(3) { ["host"]=> string(20) "fonts.googleapis.com" ["path"]=> string(4) "/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 7.0.0 - 7.0.12, 7.1.0
array(2) { ["path"]=> string(26) "//fonts.googleapis.com/css" ["query"]=> string(20) "family=Open+Sans:400" } array(2) { ["path"]=> string(26) "//fonts.googleapis.com/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 5.5.24 - 5.5.38, 5.6.8 - 5.6.26
array(4) { ["host"]=> string(20) "fonts.googleapis.com" ["port"]=> int(400) ["path"]=> string(4) "/css" ["query"]=> string(20) "family=Open+Sans:400" } array(3) { ["host"]=> string(20) "fonts.googleapis.com" ["path"]=> string(4) "/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 5.4.8 - 5.4.45, 5.5.0 - 5.5.23, 5.6.0 - 5.6.7
bool(false) array(3) { ["host"]=> string(20) "fonts.googleapis.com" ["path"]=> string(4) "/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 5.3.3 - 5.3.29, 5.4.0 - 5.4.7
bool(false) array(2) { ["path"]=> string(26) "//fonts.googleapis.com/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.2
Warning: parse_url(//fonts.googleapis.com/css?family=Open+Sans:400): Unable to parse URL in /in/IpTl1 on line 3 bool(false) array(2) { ["path"]=> string(26) "//fonts.googleapis.com/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 4.4.0 - 4.4.9, 5.0.5, 5.1.0 - 5.1.6
Warning: parse_url(//fonts.googleapis.com/css?family=Open+Sans:400): Unable to parse url in /in/IpTl1 on line 3 bool(false) array(2) { ["path"]=> string(26) "//fonts.googleapis.com/css" ["query"]=> string(33) "family=Open+Sans:400&subset=latin" }
Output for 4.3.2 - 4.3.11, 5.0.0 - 5.0.4
Warning: parse_url(//fonts.googleapis.com/css?family=Open+Sans:400): Unable to parse url in /in/IpTl1 on line 3 bool(false) array(2) { ["scheme"]=> string(43) "//fonts.googleapis.com/css?family=Open+Sans" ["path"]=> string(16) "400&subset=latin" }
Output for 4.3.0 - 4.3.1
array(2) { ["host"]=> string(43) "//fonts.googleapis.com/css?family=Open+Sans" ["port"]=> int(400) } array(2) { ["scheme"]=> string(43) "//fonts.googleapis.com/css?family=Open+Sans" ["path"]=> string(16) "400&subset=latin" }

preferences:
47.38 ms | 418 KiB | 5 Q