3v4l.org

run code in 300+ PHP versions simultaneously
<?php function url_parse($url){ $sflfdfldf=$url; if(strpos($url,"?")>-1){ $a=explode("?",$url,2); $url=$a[0]; $query=$a[1]; } if(strpos($url,"://")>-1){ $scheme=substr($url,0,strpos($url,"//")-1); $url=substr($url,strpos($url,"//")+2,strlen($url)); } if(strpos($url,"/")>-1){ $a=explode("/",$url,2); $url=$a[0]; $path="/".$a[1]; } if(strpos($url,":")>-1){ $a=explode(":",$url,2); $url=$a[0]; $port=$a[1]; } $host=$url; $url=null; foreach(array("url","scheme","host","port","path","query") as $var){ if(!empty($$var)){ $return[$var]=$$var; } } //return array("url"=>$sflfdfldf,"scheme"=>$scheme,"host"=>$host,"port"=>$port,"path"=>$path,"query"=>$query,"a"=>$url); return $return; } ?> <?php /* Compare two outputs */ //mine print_r(url_parse("http://login.yahoo.com?.src=ym&.intl=gb&.lang=zh-Hans-HK&.done=https://mail.yahoo.com")); //internal print_r(parse_url("http://login.yahoo.com?.src=ym&.intl=gb&.lang=zh-Hans-HK&.done=https://mail.yahoo.com"));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01116.75
8.3.50.0110.00821.10
8.3.40.0150.00018.76
8.3.30.0060.00918.78
8.3.20.0040.00420.14
8.3.10.0040.00423.64
8.3.00.0000.00822.32
8.2.180.0000.01518.18
8.2.170.0120.00322.96
8.2.160.0100.00322.08
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0100.00017.63
8.2.110.0070.00320.52
8.2.100.0110.00017.63
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0050.00517.75
8.2.60.0000.00917.90
8.2.50.0040.00418.07
8.2.40.0050.00321.11
8.2.30.0060.00319.82
8.2.20.0000.00717.68
8.2.10.0040.00418.03
8.2.00.0020.00518.05
8.1.280.0070.00725.92
8.1.270.0060.00320.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.78
8.1.230.0060.00617.66
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0030.00518.65
8.1.160.0060.00322.02
8.1.150.0030.00618.90
8.1.140.0000.00817.44
8.1.130.0040.00417.72
8.1.120.0050.00217.42
8.1.110.0000.00717.43
8.1.100.0000.00817.42
8.1.90.0030.00617.28
8.1.80.0000.00717.45
8.1.70.0070.00017.47
8.1.60.0040.00417.54
8.1.50.0040.00417.52
8.1.40.0060.00317.45
8.1.30.0050.00317.55
8.1.20.0000.00717.51
8.1.10.0000.00717.61
8.1.00.0040.00717.42
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.48
8.0.270.0000.00717.28
8.0.260.0030.00317.20
8.0.250.0040.00416.91
8.0.240.0070.00016.88
8.0.230.0030.00317.01
8.0.220.0000.00716.88
8.0.210.0070.00017.00
8.0.200.0030.00316.96
8.0.190.0060.00316.88
8.0.180.0040.00416.97
8.0.170.0040.00416.90
8.0.160.0070.00016.92
8.0.150.0000.00716.83
8.0.140.0070.00016.89
8.0.130.0000.00513.34
8.0.120.0030.00516.86
8.0.110.0000.00816.85
8.0.100.0070.00016.74
8.0.90.0040.00416.91
8.0.80.0080.00816.93
8.0.70.0020.00516.95
8.0.60.0060.00316.91
8.0.50.0020.00516.88
8.0.30.0110.00917.12
8.0.20.0130.00517.40
8.0.10.0040.00417.00
8.0.00.0100.00916.84
7.4.330.0000.00515.21
7.4.320.0000.00616.53
7.4.300.0060.00016.52
7.4.290.0000.00716.61
7.4.280.0040.00416.55
7.4.270.0000.00716.53
7.4.260.0000.00916.50
7.4.250.0070.00016.60
7.4.240.0030.00316.49
7.4.230.0070.00016.53
7.4.220.0090.00916.55
7.4.210.0120.00616.59
7.4.200.0040.00316.28
7.4.160.0090.00616.65
7.4.150.0030.01717.40
7.4.140.0030.01517.86
7.4.130.0080.01216.64
7.4.120.0120.00716.52
7.4.110.0120.00616.42
7.4.100.0060.01716.70
7.4.90.0140.00716.75
7.4.80.0160.00319.39
7.4.70.0070.01716.53
7.4.60.0030.01316.42
7.4.50.0000.00816.45
7.4.40.0000.01916.50
7.4.30.0120.00616.43
7.4.00.0080.00614.79
7.3.330.0050.00013.17
7.3.320.0050.00013.46
7.3.310.0000.00716.43
7.3.300.0070.00016.41
7.3.290.0090.00816.38
7.3.280.0120.00816.33
7.3.270.0130.01017.40
7.3.260.0100.00716.64
7.3.250.0080.00916.44
7.3.240.0110.01116.34
7.3.230.0140.00316.66
7.3.210.0110.00616.30
7.3.200.0080.00816.42
7.3.190.0030.01516.41
7.3.180.0080.00816.52
7.3.170.0110.00516.45
7.3.160.0110.00916.60
7.3.120.0110.00715.02
7.3.110.0090.00614.88
7.3.100.0030.00914.59
7.3.90.0070.00714.60
7.3.80.0100.00614.82
7.3.70.0070.00714.57
7.3.60.0060.00914.62
7.3.50.0070.00714.91
7.3.40.0110.00314.81
7.3.30.0070.00714.79
7.3.20.0080.00416.79
7.3.10.0100.00616.65
7.3.00.0150.00516.78
7.2.330.0090.00916.65
7.2.320.0120.00616.68
7.2.310.0120.00616.81
7.2.300.0030.01816.80
7.2.290.0110.01116.86
7.2.250.0050.01115.29
7.2.240.0070.01414.82
7.2.230.0120.00314.99
7.2.220.0080.00415.20
7.2.210.0100.01015.00
7.2.200.0140.00014.74
7.2.190.0090.00615.12
7.2.180.0040.01114.80
7.2.170.0060.00915.14
7.2.130.0060.00916.91
7.2.120.0030.00817.00
7.2.110.0110.00016.76
7.2.100.0030.01016.99
7.2.90.0030.00616.98
7.2.80.0090.00016.69
7.2.70.0080.00817.00
7.2.60.0040.00817.01
7.2.50.0060.00617.08
7.2.40.0070.00717.02
7.2.30.0050.00517.02
7.2.20.0030.01217.14
7.2.10.0060.01016.76
7.2.00.0080.01018.07
7.1.330.0000.01416.00
7.1.320.0070.00315.47
7.1.310.0000.01316.17
7.1.300.0070.00415.66
7.1.290.0030.01015.96
7.1.280.0030.00615.95
7.1.270.0000.01115.55
7.1.260.0090.00615.96
7.1.250.0060.01215.78
7.1.200.0000.01215.50
7.1.100.0100.01018.30
7.1.70.0040.00417.09
7.1.60.0120.01219.18
7.1.50.0110.01417.12
7.1.00.0030.07722.41
7.0.200.0340.00316.34
7.0.60.0130.07319.95
7.0.50.0070.08017.81
7.0.40.0200.06020.13
7.0.30.0430.04320.32
7.0.20.0270.04320.33
7.0.10.0170.08720.10
7.0.00.0000.06720.10
5.6.280.0030.03020.83
5.6.210.0030.08020.64
5.6.200.0130.05318.18
5.6.190.0130.08320.61
5.6.180.0200.05320.79
5.6.170.0300.07320.54
5.6.160.0070.07720.46
5.6.150.0070.08018.23
5.6.140.0070.04018.28
5.6.130.0130.04318.27
5.6.120.0230.06321.03
5.6.110.0100.08721.04
5.6.100.0100.03721.05
5.6.90.0100.07020.98
5.6.80.0070.05720.45
5.6.70.4630.03720.41
5.5.350.0070.08020.38
5.5.340.0070.07318.09
5.5.330.0070.03720.38
5.5.320.0170.03720.30
5.5.310.0200.05320.42
5.5.300.0130.03717.95
5.5.290.0070.07718.08
5.5.280.0000.05020.79
5.5.270.0070.08720.89
5.5.260.0030.09020.75
5.5.250.0130.07320.70
5.5.240.0300.04020.04
5.4.450.0630.06719.59
5.4.440.1000.06319.38
5.4.430.0900.06719.60
5.4.420.0130.06319.35
5.4.410.0530.05719.46
5.4.400.0670.05018.99
5.4.390.0730.06718.84
5.4.380.0870.07719.26
5.4.370.0700.05719.11
5.4.360.0570.06019.28
5.4.350.0230.04319.05
5.4.340.0830.07719.20
5.4.320.0800.08319.26
5.4.310.0900.05719.30
5.4.300.0500.06319.14
5.4.290.0530.05019.03
5.4.280.0500.07019.01
5.4.270.0770.06019.21
5.4.260.0700.07019.29
5.4.250.0230.06019.29
5.4.240.0770.07319.21
5.4.230.0700.05319.29
5.4.220.0800.05019.12
5.4.210.0570.05719.02
5.4.200.0730.06016.88
5.4.190.0770.05019.18
5.4.180.0700.05318.98
5.4.170.0930.06718.96
5.4.160.0930.08319.07
5.4.150.1070.05718.92
5.4.140.1030.05316.56
5.4.130.0770.06716.54
5.4.120.0730.06716.33
5.4.110.0970.06716.51
5.4.100.0830.07016.54
5.4.90.0530.06716.34
5.4.80.0430.05316.37
5.4.70.0700.06016.47
5.4.60.0770.04716.46
5.4.50.0800.06016.37
5.4.40.0070.05716.40
5.4.30.0600.05016.29
5.4.20.0630.06316.37
5.4.10.0730.06316.36
5.4.00.0570.05715.79
5.3.290.0830.07714.59
5.3.280.0800.06314.63
5.3.270.0970.06314.59
5.3.260.0700.07714.70
5.3.250.0930.05014.48
5.3.240.0700.05714.76
5.3.230.0670.07014.53
5.3.220.0800.06014.55
5.3.210.0300.06014.59
5.3.200.0600.06014.57
5.3.190.0630.06714.55
5.3.180.0600.04714.59
5.3.170.0670.06014.59
5.3.160.0870.04714.63
5.3.150.0770.05314.59
5.3.140.0770.04714.62
5.3.130.0530.06314.58
5.3.120.0630.05714.47
5.3.110.0730.05014.71
5.3.100.0800.05013.96
5.3.90.0870.06014.09
5.3.80.0800.05314.08
5.3.70.0970.07013.95
5.3.60.0770.06714.10
5.3.50.0770.06014.13
5.3.40.0670.06013.97
5.3.30.0870.06013.84
5.3.20.0670.05713.57
5.3.10.0830.06713.75
5.3.00.0770.05313.73
5.2.170.0430.04311.07
5.2.160.0670.03011.17
5.2.150.0800.04011.16
5.2.140.0300.04711.21
5.2.130.0470.04311.03
5.2.120.0470.03711.03
5.2.110.0670.05711.15
5.2.100.0870.04311.18
5.2.90.0830.05011.02
5.2.80.0330.05011.04
5.2.70.0470.05011.13
5.2.60.0630.05011.11
5.2.50.0670.04010.97
5.2.40.0600.07010.93
5.2.30.0630.03010.94
5.2.20.0400.03710.88
5.2.10.0270.03711.10
5.2.00.0370.03710.79
5.1.60.0500.0339.99
5.1.50.0470.03310.24
5.1.40.0430.02710.14
5.1.30.0400.04310.32
5.1.20.0370.03310.59
5.1.10.0630.0309.96
5.1.00.0530.03710.10
5.0.50.0200.0338.49
5.0.40.0430.0238.51
5.0.30.0230.0478.27
5.0.20.0330.0278.28
5.0.10.0300.0308.27
5.0.00.0000.0578.41
4.4.90.0270.0238.27
4.4.80.0200.0208.27
4.4.70.0200.0408.27
4.4.60.0070.0308.27
4.4.50.0230.0238.27
4.4.40.0300.0338.27
4.4.30.0070.0208.27
4.4.20.0200.0308.27
4.4.10.0270.0238.27
4.4.00.0300.0308.27
4.3.110.0200.0238.27
4.3.100.0230.0278.27
4.3.90.0330.0208.27
4.3.80.0270.0308.27
4.3.70.0370.0178.27
4.3.60.0330.0138.27
4.3.50.0070.0208.27
4.3.40.0300.0438.27
4.3.30.0230.0278.27
4.3.20.0170.0308.27
4.3.10.0030.0278.27
4.3.00.0100.0278.27

preferences:
48.76 ms | 401 KiB | 5 Q