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'] = basename($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.0070.00718.85
8.3.30.0100.00320.20
8.3.20.0090.00020.19
8.3.10.0040.00422.05
8.3.00.0000.00722.43
8.2.170.0100.00322.96
8.2.160.0100.00322.11
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00320.87
8.2.110.0100.00022.24
8.2.100.0060.00617.91
8.2.90.0050.00219.19
8.2.80.0040.00419.01
8.2.70.0000.00917.50
8.2.60.0000.00918.03
8.2.50.0080.00018.07
8.2.40.0040.00418.21
8.2.30.0040.00419.55
8.2.20.0040.00417.58
8.2.10.0040.00417.51
8.2.00.0040.00417.69
8.1.270.0040.00423.99
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00320.89
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.23
8.1.190.0040.00417.54
8.1.180.0080.00018.10
8.1.170.0060.00318.53
8.1.160.0040.00418.82
8.1.150.0030.00618.45
8.1.140.0000.00717.27
8.1.130.0070.00017.69
8.1.120.0040.00417.49
8.1.110.0040.00417.43
8.1.100.0000.00917.40
8.1.90.0040.00417.31
8.1.80.0040.00417.39
8.1.70.0040.00417.38
8.1.60.0060.00317.43
8.1.50.0040.00417.45
8.1.40.0080.00017.35
8.1.30.0040.00417.58
8.1.20.0080.00017.62
8.1.10.0070.00017.59
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0070.00017.16
8.0.280.0030.00318.41
8.0.270.0030.00317.21
8.0.260.0060.00016.67
8.0.250.0000.00716.86
8.0.240.0040.00416.93
8.0.230.0090.00016.80
8.0.220.0080.00016.73
8.0.210.0030.00316.79
8.0.200.0000.00616.79
8.0.190.0000.00816.89
8.0.180.0030.00316.84
8.0.170.0070.00016.81
8.0.160.0000.00816.88
8.0.150.0040.00416.80
8.0.140.0000.00716.77
8.0.130.0030.00313.20
8.0.120.0000.00716.84
8.0.110.0070.00016.90
8.0.100.0000.00716.74
8.0.90.0030.00416.87
8.0.80.0130.01016.81
8.0.70.0040.00416.66
8.0.60.0040.00416.86
8.0.50.0000.00816.74
8.0.30.0080.01116.82
8.0.20.0090.00917.40
8.0.10.0000.00717.02
8.0.00.0060.01216.65
7.4.330.0050.00015.00
7.4.320.0060.00016.61
7.4.300.0000.00616.56
7.4.290.0030.00316.61
7.4.280.0070.00016.61
7.4.270.0070.00016.60
7.4.260.0000.00513.23
7.4.250.0000.00916.54
7.4.240.0000.00716.51
7.4.230.0030.00316.51
7.4.220.0160.00516.44
7.4.210.0070.00816.58
7.4.200.0000.00816.54
7.4.190.0030.00316.66
7.4.160.0080.00816.39
7.4.150.0090.01217.40
7.4.140.0100.00717.86
7.4.130.0100.00816.34
7.4.120.0150.00716.34
7.4.110.0040.01416.49
7.4.100.0140.00316.56
7.4.90.0150.00616.62
7.4.80.0090.01519.39
7.4.70.0090.00916.33
7.4.60.0070.01016.40
7.4.50.0030.00516.41
7.4.40.0100.00722.77
7.4.30.0030.01216.61
7.4.00.0070.00914.94
7.3.330.0000.00513.14
7.3.320.0000.00513.15
7.3.310.0030.00316.26
7.3.300.0030.00316.29
7.3.290.0030.01016.36
7.3.280.0050.00916.33
7.3.270.0150.00617.40
7.3.260.0060.01716.78
7.3.250.0110.00616.40
7.3.240.0030.01316.25
7.3.230.0100.00616.39
7.3.210.0100.01016.36
7.3.200.0130.00419.39
7.3.190.0060.01316.36
7.3.180.0090.00616.36
7.3.170.0130.00316.64
7.3.160.0090.00916.36
7.3.120.0050.01014.77
7.3.110.0070.00814.72
7.3.100.0060.00814.95
7.3.90.0080.00514.71
7.3.80.0050.00914.78
7.3.70.0030.00714.78
7.3.60.0000.01314.80
7.3.50.0040.00914.71
7.3.40.0050.00914.76
7.3.30.0040.00814.63
7.3.20.0030.01016.55
7.3.10.0050.00916.64
7.3.00.0040.01116.30
7.2.330.0100.00716.44
7.2.320.0030.01416.48
7.2.310.0130.01016.54
7.2.300.0090.00716.72
7.2.290.0100.01016.53
7.2.250.0070.00715.29
7.2.240.0080.00915.02
7.2.230.0060.00914.86
7.2.220.0030.00914.98
7.2.210.0060.00815.05
7.2.200.0050.00814.85
7.2.190.0060.00615.10
7.2.180.0080.00614.85
7.2.170.0030.00814.95
7.2.160.0040.01114.63
7.2.150.0070.00716.91
7.2.140.0030.01316.70
7.2.130.0040.00816.95
7.2.120.0060.00917.00
7.2.110.0030.01016.93
7.2.100.0110.00416.71
7.2.90.0070.00417.14
7.2.80.0050.01116.71
7.2.70.0060.00616.69
7.2.60.0020.01416.85
7.2.50.0080.00816.89
7.2.40.0030.01416.51
7.2.30.0030.01316.84
7.2.20.0030.00817.16
7.2.10.0100.00716.77
7.2.00.0050.01018.21
7.1.330.0070.00915.80
7.1.320.0090.00715.72
7.1.310.0070.00715.77
7.1.300.0040.00715.99
7.1.290.0060.00715.73
7.1.280.0080.00515.66
7.1.270.0090.00715.79
7.1.260.0050.01015.73
7.1.250.0000.01316.00
7.1.200.0090.00015.85
7.1.100.0080.00818.26
7.1.70.0120.00017.20
7.1.60.0040.01919.20
7.1.50.0200.01734.96
7.1.00.0030.06022.31
7.0.200.0170.01014.66
7.0.140.0100.06722.16
7.0.100.0100.08020.17
7.0.90.0100.06720.15
7.0.80.0100.08319.98
7.0.70.0100.05019.96
7.0.60.0100.07720.00
7.0.50.0400.05020.21
7.0.40.0070.05720.19
7.0.30.0100.08020.15
7.0.20.0100.08320.00
7.0.10.0100.08020.16
7.0.00.0170.08020.10
5.6.280.0070.07020.92
5.6.250.0000.08320.50
5.6.240.0130.06720.57
5.6.230.0100.07320.62
5.6.220.0030.08020.66
5.6.210.0100.08020.65
5.6.200.0070.04721.07
5.6.190.0030.07720.99
5.6.180.0070.08020.96
5.6.170.0070.08721.08
5.6.160.0070.08021.14
5.6.150.0070.08020.94
5.6.140.0130.08021.01
5.6.130.0130.08321.17
5.6.120.0030.08321.00
5.6.110.0100.08320.93
5.6.100.0100.07321.02
5.6.90.0130.08321.08
5.6.80.0070.05320.38
5.6.70.0000.08320.32
5.6.60.0030.08720.54
5.6.50.0030.06320.49
5.6.40.0100.07320.38
5.6.30.0170.06320.31
5.6.20.0030.08020.52
5.6.10.0230.04720.49
5.6.00.0100.07320.36
5.5.380.0130.06020.51
5.5.370.0170.07020.44
5.5.360.0170.03720.41
5.5.350.0030.08020.34
5.5.340.0130.07020.73
5.5.330.0070.08020.76
5.5.320.0200.07320.78
5.5.310.0100.07720.77
5.5.300.0070.08720.83
5.5.290.0100.07720.88
5.5.280.0070.08020.90
5.5.270.0200.07720.91
5.5.260.0000.08320.73
5.5.250.0070.08320.68
5.5.240.0130.06320.30
5.5.230.0100.07320.14
5.5.220.0100.07720.18
5.5.210.0070.04720.26
5.5.200.0070.07320.18
5.5.190.0070.08319.99
5.5.180.0170.07320.25
5.5.160.0130.07020.24
5.5.150.0030.08020.25
5.5.140.0000.05720.07
5.5.130.0170.06719.98
5.5.120.0100.08020.21
5.5.110.0000.08720.12
5.5.100.0070.07720.07
5.5.90.0130.07020.07
5.5.80.0130.04020.16
5.5.70.0000.08719.94
5.5.60.0070.07720.08
5.5.50.0000.08320.14
5.5.40.0070.07720.05
5.5.30.0000.07019.88
5.5.20.0100.07019.95
5.5.10.0100.07019.95
5.5.00.0130.07319.98
5.4.450.0030.06319.14
5.4.440.0100.06319.38
5.4.430.0100.07319.40
5.4.420.0070.07319.29
5.4.410.0030.08319.22
5.4.400.0130.06718.79
5.4.390.0070.07718.79
5.4.380.0070.07718.95
5.4.370.0030.08018.97
5.4.360.0070.07718.82
5.4.350.0100.06718.79
5.4.340.0070.04318.82
5.4.320.0070.05318.81
5.4.310.0130.06019.11
5.4.300.0130.06719.00
5.4.290.0100.07718.95
5.4.280.0130.07318.78
5.4.270.0030.08018.83
5.4.260.0070.07318.80
5.4.250.0130.06719.07
5.4.240.0100.06719.09
5.4.230.0070.07319.11
5.4.220.0130.07018.89
5.4.210.0070.08019.23
5.4.200.0100.07319.05
5.4.190.0070.08018.80
5.4.180.0030.08019.05
5.4.170.0130.07019.13
5.4.160.0130.07319.12
5.4.150.0070.07019.01
5.4.140.0100.07316.37
5.4.130.0100.06716.39
5.4.120.0030.08316.06
5.4.110.0030.08016.25
5.4.100.0070.06716.43
5.4.90.0100.07316.31
5.4.80.0070.05016.37
5.4.70.0100.06716.42
5.4.60.0000.07016.24
5.4.50.0070.07316.28
5.4.40.0100.06716.39
5.4.30.0170.06316.36
5.4.20.0070.06016.20
5.4.10.0070.06316.23
5.4.00.0070.04315.73
5.3.290.0100.05714.61
5.3.280.0170.07014.46
5.3.270.0100.04014.61
5.3.260.0030.08014.60
5.3.250.0200.04014.57
5.3.240.0070.07714.46
5.3.230.0030.06014.48
5.3.220.0100.06714.39
5.3.210.0070.07314.41
5.3.200.0100.07314.57
5.3.190.0130.07014.55
5.3.180.0200.06314.54
5.3.170.0070.07314.54
5.3.160.0070.03714.48
5.3.150.0000.07714.50
5.3.140.0100.07314.42
5.3.130.0070.06714.41
5.3.120.0100.06314.53
5.3.110.0130.07714.39
5.3.100.0070.07713.92
5.3.90.0070.07313.86
5.3.80.0070.07313.99
5.3.70.0130.06714.01
5.3.60.0000.05013.99
5.3.50.0070.07313.91
5.3.40.0100.07013.89
5.3.30.0100.07013.67
5.3.20.0100.07713.65
5.3.10.0000.06013.61
5.3.00.0000.07313.61
5.2.170.0000.05011.03
5.2.160.0070.05711.09
5.2.150.0030.06711.21
5.2.140.0070.05711.00
5.2.130.0030.06311.14
5.2.120.0070.05711.05
5.2.110.0100.06011.14
5.2.100.0100.05711.05
5.2.90.0070.05711.13
5.2.80.0130.05011.05
5.2.70.0070.06310.94
5.2.60.0130.05011.10
5.2.50.0070.03711.02
5.2.40.0100.05310.79
5.2.30.0100.06011.03
5.2.20.0070.05710.84
5.2.10.0030.06310.91
5.2.00.0100.05710.76
5.1.60.0070.04710.11
5.1.50.0070.04310.11
5.1.40.0070.02310.11
5.1.30.0000.03310.41
5.1.20.0000.03710.32
5.1.10.0030.05710.11
5.1.00.0100.04710.11
5.0.50.0030.04710.11
5.0.40.0130.03310.11
5.0.30.0030.06710.11
5.0.20.0100.03710.11
5.0.10.0070.02710.11
5.0.00.0000.03310.11
4.4.90.0070.03010.11
4.4.80.0030.03310.11
4.4.70.0070.03310.11
4.4.60.0100.02710.11
4.4.50.0000.03710.11
4.4.40.0030.05010.11
4.4.30.0000.03710.11
4.4.20.0030.01310.11
4.4.10.0030.02710.11
4.4.00.0070.05010.11
4.3.110.0100.02710.11
4.3.100.0070.02710.11
4.3.90.0070.01710.11
4.3.80.0030.02010.11
4.3.70.0000.02010.11
4.3.60.0030.01310.11
4.3.50.0030.01310.11
4.3.40.0030.02310.11
4.3.30.0030.03310.11
4.3.20.0000.02010.11
4.3.10.0000.02310.11
4.3.00.0030.01710.11

preferences:
46.47 ms | 400 KiB | 5 Q