3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://www.unl.edu/path/path/index.php?test"; $parts = parse_url($url); if (isset($parts['path'])) { $pathinfo = pathinfo($parts['path']); if (isset($pathinfo['extension'])) { $parts['path'] = implode('/',array_pop(explode('/',$parts['path']))); } unset($parts['query']); unset($parts['fragment']); } print_r($parts);

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.40.0110.00418.72
8.3.30.0070.00720.16
8.3.20.0000.00820.39
8.3.10.0080.00022.09
8.3.00.0050.00322.40
8.2.170.0040.01122.96
8.2.160.0070.00722.17
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00820.88
8.2.110.0060.00321.01
8.2.100.0080.00317.91
8.2.90.0030.00519.09
8.2.80.0060.00319.39
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0090.00018.21
8.2.30.0070.00019.45
8.2.20.0080.00017.73
8.2.10.0000.00817.75
8.2.00.0040.00417.80
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.01
8.1.230.0090.00323.86
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.52
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0030.00618.77
8.1.150.0040.00418.57
8.1.140.0000.00817.51
8.1.130.0030.00317.82
8.1.120.0000.00717.44
8.1.110.0070.00017.30
8.1.100.0050.00317.30
8.1.90.0000.00717.42
8.1.80.0040.00417.30
8.1.70.0000.00717.34
8.1.60.0040.00417.48
8.1.50.0000.00717.53
8.1.40.0000.00717.58
8.1.30.0030.00617.59
8.1.20.0000.00717.60
8.1.10.0020.00517.57
8.1.00.0030.00517.59
8.0.300.0000.00818.77
8.0.290.0070.00017.05
8.0.280.0030.00318.27
8.0.270.0000.00717.27
8.0.260.0000.00816.83
8.0.250.0000.00716.90
8.0.240.0080.00016.95
8.0.230.0000.00916.93
8.0.220.0020.00516.95
8.0.210.0030.00316.88
8.0.200.0030.00516.95
8.0.190.0000.00817.03
8.0.180.0000.00716.84
8.0.170.0040.00416.99
8.0.160.0070.00016.88
8.0.150.0050.00316.68
8.0.140.0030.00516.83
8.0.130.0050.00013.34
8.0.120.0040.00416.87
8.0.110.0000.00716.95
8.0.100.0000.00716.86
8.0.90.0070.00016.95
8.0.80.0040.01316.84
8.0.70.0000.00716.93
8.0.60.0070.00016.95
8.0.50.0040.00416.92
8.0.30.0090.01117.11
8.0.20.0110.00617.40
8.0.10.0030.00616.83
8.0.00.0130.00616.65
7.4.330.0030.00314.99
7.4.320.0030.00316.52
7.4.300.0030.00316.65
7.4.290.0000.00716.55
7.4.280.0030.00316.52
7.4.270.0030.00316.55
7.4.260.0060.00013.33
7.4.250.0060.00316.47
7.4.240.0040.00316.51
7.4.230.0000.00716.70
7.4.220.0190.00616.48
7.4.210.0080.00816.57
7.4.200.0040.00416.65
7.4.190.0000.00716.73
7.4.160.0090.00916.74
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0100.00716.48
7.4.120.0080.00916.53
7.4.110.0140.01116.45
7.4.100.0130.00316.46
7.4.90.0150.00616.46
7.4.80.0030.01619.39
7.4.70.0070.01016.45
7.4.60.0130.00316.38
7.4.50.0040.00416.44
7.4.40.0000.01522.77
7.4.30.0100.00716.45
7.4.00.0080.00815.21
7.3.330.0050.00013.13
7.3.320.0020.00213.20
7.3.310.0070.00016.27
7.3.300.0000.00616.36
7.3.290.0030.01016.44
7.3.280.0060.01216.40
7.3.270.0060.01117.40
7.3.260.0090.01416.37
7.3.250.0080.00916.38
7.3.240.0150.00616.50
7.3.230.0030.01316.52
7.3.210.0130.00716.30
7.3.200.0110.01019.39
7.3.190.0130.01016.43
7.3.180.0110.00616.31
7.3.170.0120.00316.30
7.3.160.0000.01616.32
7.3.120.0080.01014.94
7.3.110.0000.01814.69
7.3.100.0030.01214.80
7.3.90.0040.01414.75
7.3.80.0070.00714.91
7.3.70.0130.00014.76
7.3.60.0030.01014.70
7.3.50.0060.00814.63
7.3.40.0000.01114.93
7.3.30.0040.01214.66
7.3.20.0100.00016.85
7.3.10.0080.00416.69
7.3.00.0040.00816.61
7.2.330.0090.00916.80
7.2.320.0110.00516.90
7.2.310.0060.01316.77
7.2.300.0050.01416.75
7.2.290.0070.01116.86
7.2.250.0100.00615.27
7.2.240.0030.01315.07
7.2.230.0120.00314.91
7.2.220.0100.00015.24
7.2.210.0070.00315.11
7.2.200.0060.01015.07
7.2.190.0000.00915.14
7.2.180.0110.00414.93
7.2.170.0080.00814.93
7.2.60.0040.01116.76
7.2.00.0070.00719.01
7.1.330.0080.00615.53
7.1.320.0030.01015.83
7.1.310.0030.00715.67
7.1.300.0060.00915.88
7.1.290.0000.01015.97
7.1.280.0050.00815.83
7.1.270.0100.00615.87
7.1.260.0040.00715.90
7.1.200.0110.00015.83
7.1.100.0060.00618.25
7.1.70.0030.00617.32
7.1.60.0070.01719.20
7.1.50.0230.01334.85
7.1.00.0030.05322.36
7.0.200.0090.00014.64
7.0.140.0070.07022.00
7.0.100.0100.04019.86
7.0.90.0100.04019.95
7.0.80.0030.04719.80
7.0.70.0200.06719.87
7.0.60.0270.06319.83
7.0.50.0370.05020.25
7.0.40.0030.07320.18
7.0.30.0130.08020.05
7.0.20.0070.08320.00
7.0.10.0100.08720.08
7.0.00.0200.06719.95
5.6.280.0030.07320.86
5.6.250.0000.05320.54
5.6.240.0100.05720.67
5.6.230.0000.05020.63
5.6.220.0070.06720.56
5.6.210.0030.06020.70
5.6.200.0100.08321.09
5.6.190.0070.06721.04
5.6.180.0170.08021.05
5.6.170.0100.04721.02
5.6.160.0100.07721.07
5.6.150.0100.06321.00
5.6.140.0170.07021.01
5.6.130.0100.08321.00
5.6.120.0130.06020.95
5.6.110.0100.07721.04
5.6.100.0200.06321.06
5.6.90.0170.07720.93
5.6.80.0070.04720.33
5.6.70.0130.07320.44
5.6.60.0070.08020.29
5.6.50.0130.06720.39
5.6.40.0170.06720.48
5.6.30.0070.07320.39
5.6.20.0200.06320.38
5.6.10.0130.07320.37
5.6.00.0030.08020.27
5.5.380.0100.04020.30
5.5.370.0070.03720.52
5.5.360.0130.03320.44
5.5.350.0100.04020.37
5.5.340.0100.07720.87
5.5.330.0070.07320.87
5.5.320.0070.04720.84
5.5.310.0130.07320.88
5.5.300.0030.05320.79
5.5.290.0100.05020.88
5.5.280.0000.08320.87
5.5.270.0130.08020.78
5.5.260.0130.08320.71
5.5.250.0130.07720.72
5.5.240.0070.07720.17
5.5.230.0100.08020.13
5.5.220.0070.08320.25
5.5.210.0100.07720.13
5.5.200.0070.08020.18
5.5.190.0030.04720.22
5.5.180.0100.07720.26
5.5.160.0070.08320.26
5.5.150.0100.07320.20
5.5.140.0170.05720.20
5.5.130.0270.06020.09
5.5.120.0170.06020.22
5.5.110.0000.05020.13
5.5.100.0300.04320.15
5.5.90.0070.08720.15
5.5.80.0100.07720.05
5.5.70.0030.08320.07
5.5.60.0030.08719.92
5.5.50.0100.05320.11
5.5.40.0030.08020.03
5.5.30.0100.06320.07
5.5.20.0070.08020.03
5.5.10.0070.08319.96
5.5.00.0130.07020.12
5.4.450.0030.08319.38
5.4.440.0070.08019.37
5.4.430.0200.06719.30
5.4.420.0070.06319.11
5.4.410.0100.07319.24
5.4.400.0070.05719.15
5.4.390.0100.04318.95
5.4.380.0100.05719.03
5.4.370.0130.06718.81
5.4.360.0130.07318.93
5.4.350.0130.06319.04
5.4.340.0130.06719.08
5.4.320.0100.06718.98
5.4.310.0030.07718.94
5.4.300.0200.06318.91
5.4.290.0000.09018.77
5.4.280.0130.07319.04
5.4.270.0100.06719.07
5.4.260.0070.08019.02
5.4.250.0100.07018.97
5.4.240.0130.06718.80
5.4.230.0100.07719.12
5.4.220.0100.06719.11
5.4.210.0170.04318.98
5.4.200.0070.07719.02
5.4.190.0100.07019.10
5.4.180.0030.08018.77
5.4.170.0130.07019.09
5.4.160.0130.07018.77
5.4.150.0070.05719.00
5.4.140.0070.04016.31
5.4.130.0030.08016.29
5.4.120.0100.07016.21
5.4.110.0130.07316.48
5.4.100.0070.07716.44
5.4.90.0000.07016.44
5.4.80.0070.07016.32
5.4.70.0130.06316.29
5.4.60.0070.07016.39
5.4.50.0100.07016.28
5.4.40.0070.07316.38
5.4.30.0100.07016.32
5.4.20.0030.05316.18
5.4.10.0070.07316.21
5.4.00.0200.06015.74
5.3.290.0130.07014.60
5.3.280.0130.07714.60
5.3.270.0000.05714.60
5.3.260.0100.07014.58
5.3.250.0130.07714.46
5.3.240.0130.07014.46
5.3.230.0130.06714.55
5.3.220.0100.07714.42
5.3.210.0130.05314.47
5.3.200.0070.05014.43
5.3.190.0030.07714.42
5.3.180.0100.07014.43
5.3.170.0100.07314.42
5.3.160.0130.03714.50
5.3.150.0070.06014.42
5.3.140.0100.07314.43
5.3.130.0070.08014.41
5.3.120.0200.06314.50
5.3.110.0100.07314.54
5.3.100.0070.08313.94
5.3.90.0130.06713.95
5.3.80.0070.07313.93
5.3.70.0030.06713.99
5.3.60.0030.08014.00
5.3.50.0100.07313.80
5.3.40.0100.07313.85
5.3.30.0070.05313.68
5.3.20.0000.04713.67
5.3.10.0130.06313.64
5.3.00.0100.05313.63
5.2.170.0070.06011.52
5.2.160.0100.05011.52
5.2.150.0070.06311.52
5.2.140.0070.05711.52
5.2.130.0030.04711.52
5.2.120.0100.04011.52
5.2.110.0070.06011.52
5.2.100.0030.04011.52
5.2.90.0100.04711.52
5.2.80.0030.06011.52
5.2.70.0000.03711.52
5.2.60.0070.06011.52
5.2.50.0070.05711.52
5.2.40.0000.04711.52
5.2.30.0070.06311.52
5.2.20.0030.06711.52
5.2.10.0000.06311.52
5.2.00.0070.06011.52
5.1.60.0030.05711.52
5.1.50.0000.05711.52
5.1.40.0100.05011.52
5.1.30.0100.04011.52
5.1.20.0070.05311.52
5.1.10.0030.04011.52
5.1.00.0030.05311.52
5.0.50.0030.04711.52
5.0.40.0000.03311.52
5.0.30.0000.03711.52
5.0.20.0070.04011.52
5.0.10.0030.03711.52
5.0.00.0000.06711.52
4.4.90.0000.03711.52
4.4.80.0070.02311.52
4.4.70.0000.03011.52
4.4.60.0030.03711.52
4.4.50.0000.03311.52
4.4.40.0030.04711.52
4.4.30.0000.03711.52
4.4.20.0000.03711.52
4.4.10.0030.02311.52
4.4.00.0030.04711.52
4.3.110.0030.03311.52
4.3.100.0030.01711.52
4.3.90.0030.03011.52
4.3.80.0000.06011.52
4.3.70.0000.03711.52
4.3.60.0030.03311.52
4.3.50.0000.03311.52
4.3.40.0000.04011.52
4.3.30.0000.03711.52
4.3.20.0000.03711.52
4.3.10.0000.03711.52
4.3.00.0030.03011.55

preferences:
52.9 ms | 400 KiB | 5 Q