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'])) { $path = explode('/',$parts['path']); array_pop($path); $parts['path'] = implode('/', $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.70.0070.01416.63
8.3.60.0150.00718.06
8.3.50.0100.01321.98
8.3.40.0000.01418.79
8.3.30.0040.01118.93
8.3.20.0050.00220.34
8.3.10.0080.00023.71
8.3.00.0090.00020.95
8.2.180.0070.01016.36
8.2.170.0170.00322.96
8.2.160.0100.00320.38
8.2.150.0000.00824.18
8.2.140.0120.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00319.36
8.2.110.0070.00320.31
8.2.100.0060.00617.91
8.2.90.0050.00319.08
8.2.80.0000.00818.03
8.2.70.0050.00317.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0030.00618.28
8.2.30.0030.00521.10
8.2.20.0050.00317.75
8.2.10.0070.00017.99
8.2.00.0030.00517.74
8.1.280.0140.00425.92
8.1.270.0040.00424.02
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0040.00820.96
8.1.220.0000.00818.77
8.1.210.0000.00818.84
8.1.200.0030.00717.48
8.1.190.0050.00317.30
8.1.180.0060.00618.10
8.1.170.0040.00418.50
8.1.160.0000.00918.76
8.1.150.0000.00818.46
8.1.140.0070.00017.35
8.1.130.0070.00019.57
8.1.120.0070.00017.46
8.1.110.0030.00617.39
8.1.100.0080.00017.30
8.1.90.0000.00817.39
8.1.80.0000.00717.42
8.1.70.0000.00717.32
8.1.60.0040.00817.49
8.1.50.0000.00917.52
8.1.40.0080.00017.40
8.1.30.0030.00517.62
8.1.20.0000.00817.52
8.1.10.0020.00517.64
8.1.00.0000.00817.45
8.0.300.0040.00419.89
8.0.290.0070.00017.04
8.0.280.0030.00318.39
8.0.270.0040.00417.12
8.0.260.0030.00317.13
8.0.250.0030.00316.88
8.0.240.0070.00416.77
8.0.230.0020.00516.92
8.0.220.0020.00516.85
8.0.210.0030.00316.71
8.0.200.0060.00016.86
8.0.190.0070.00016.80
8.0.180.0030.00616.89
8.0.170.0040.00416.79
8.0.160.0040.00416.72
8.0.150.0050.00316.77
8.0.140.0030.00616.81
8.0.130.0060.00013.25
8.0.120.0000.00816.69
8.0.110.0040.00416.83
8.0.100.0000.00716.78
8.0.90.0040.00416.69
8.0.80.0060.01016.87
8.0.70.0050.00316.91
8.0.60.0030.00416.69
8.0.50.0040.00416.73
8.0.30.0050.01316.83
8.0.20.0060.01217.40
8.0.10.0040.00416.91
8.0.00.0140.00516.63
7.4.330.0050.00015.12
7.4.320.0030.00316.48
7.4.300.0070.00016.58
7.4.290.0070.00016.55
7.4.280.0030.00616.50
7.4.270.0000.00716.50
7.4.260.0000.00716.45
7.4.250.0040.00316.50
7.4.240.0040.00416.64
7.4.230.0070.00016.40
7.4.220.0100.01616.47
7.4.210.0070.00716.55
7.4.200.0040.00416.61
7.4.160.0060.00916.33
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0080.01116.49
7.4.120.0050.01316.52
7.4.110.0060.01116.38
7.4.100.0110.01416.35
7.4.90.0100.00716.34
7.4.80.0140.01116.43
7.4.70.0100.00616.51
7.4.60.0150.00316.41
7.4.50.0030.00316.38
7.4.40.0070.01016.39
7.4.30.0070.01016.61
7.4.00.0030.01414.84
7.3.330.0000.00613.15
7.3.320.0030.00313.11
7.3.310.0000.00716.33
7.3.300.0000.00716.25
7.3.290.0070.00716.28
7.3.280.0090.00916.32
7.3.270.0130.00617.40
7.3.260.0050.01216.28
7.3.250.0120.00616.35
7.3.240.0110.00716.33
7.3.230.0090.00916.39
7.3.210.0110.01116.55
7.3.200.0060.01219.39
7.3.190.0130.00616.44
7.3.180.0120.00916.21
7.3.170.0080.00816.56
7.3.160.0170.00016.45
7.3.120.0000.01714.87
7.2.330.0060.01616.47
7.2.320.0100.00616.82
7.2.310.0080.00816.54
7.2.300.0080.00816.71
7.2.290.0160.00816.71
7.2.00.0030.00919.37
7.1.100.0040.00818.21
7.1.70.0000.01217.33
7.1.60.0030.02119.70
7.1.50.0060.01017.03
7.1.00.0070.07322.57
7.0.200.0000.00816.69
7.0.140.0130.05722.15
7.0.60.0070.08019.94
7.0.50.0100.05017.79
7.0.40.0100.05019.98
7.0.30.0330.07320.01
7.0.20.0400.06320.18
7.0.10.0300.07320.14
7.0.00.0100.08020.14
5.6.280.0070.07020.86
5.6.210.0070.08320.75
5.6.200.0070.05018.12
5.6.190.0170.07720.57
5.6.180.4070.04720.41
5.6.170.0230.03720.47
5.6.160.0100.05020.48
5.6.150.0030.08318.13
5.6.140.0070.03718.10
5.6.130.0030.06018.15
5.6.120.0030.04021.00
5.6.110.0070.04021.00
5.6.100.0000.08720.97
5.6.90.0000.04721.01
5.6.80.0000.04020.52
5.6.70.4300.04020.36
5.5.350.0130.07320.48
5.5.340.0070.08318.02
5.5.330.0130.05320.14
5.5.320.0770.06320.50
5.5.310.0270.07720.32
5.5.300.0130.06717.89
5.5.290.0000.04318.00
5.5.280.0000.09020.87
5.5.270.0030.04020.76
5.5.260.0170.07320.97
5.5.250.0100.06720.46
5.5.240.0070.07320.18
5.4.450.0370.04019.42
5.4.440.0370.07319.38
5.4.430.0330.06719.24
5.4.420.0270.04319.25
5.4.410.0370.07019.14
5.4.400.0270.04018.79
5.4.390.0330.03319.09
5.4.380.0300.05019.13
5.4.370.0270.04018.91
5.4.360.0300.04019.13
5.4.350.0330.06319.09
5.4.340.0370.07019.22
5.4.320.0430.06318.92
5.4.310.0370.03318.93
5.4.300.0330.03719.13
5.4.290.0330.03319.23
5.4.280.0330.05019.25
5.4.270.0470.05719.25
5.4.260.0370.06019.07
5.4.250.0370.07319.07
5.4.240.0270.04019.21
5.4.230.0400.03719.08
5.4.220.0370.04719.23
5.4.210.0400.03019.08
5.4.200.0230.04719.23
5.4.190.0400.03718.78
5.4.180.0370.04019.08
5.4.170.0400.04318.93
5.4.160.0470.07019.07
5.4.150.0530.04018.86
5.4.140.0500.06016.29
5.4.130.0600.04316.26
5.4.120.0400.04316.29
5.4.110.0270.04316.41
5.4.100.0330.03316.08
5.4.90.0370.07016.38
5.4.80.0400.06316.41
5.4.70.0370.07016.44
5.4.60.0400.06716.40
5.4.50.0400.04716.20
5.4.40.0430.02316.38
5.4.30.0270.04316.36
5.4.20.0330.03016.40
5.4.10.0270.04716.46
5.4.00.0300.03715.72
5.3.290.0370.05314.63
5.3.280.0300.04014.45
5.3.270.0330.05714.44
5.3.260.0400.05014.58
5.3.250.0500.06014.55
5.3.240.0500.06014.45
5.3.230.0470.04314.64
5.3.220.0430.06714.47
5.3.210.0400.05714.51
5.3.200.0370.03014.55
5.3.190.0470.06714.41
5.3.180.0370.05714.54
5.3.170.0370.07014.49
5.3.160.0330.04714.40
5.3.150.0300.03714.42
5.3.140.0500.03014.58
5.3.130.0370.03314.48
5.3.120.0330.03314.59
5.3.110.0300.04014.49
5.3.100.0370.04313.89
5.3.90.0370.06013.97
5.3.80.0400.04014.05
5.3.70.0330.03313.85
5.3.60.0430.06313.96
5.3.50.0400.05713.88
5.3.40.0370.03713.89
5.3.30.0330.04713.76
5.3.20.0470.05713.55
5.3.10.0330.04713.70
5.3.00.0330.03013.41
5.2.170.0430.05011.59
5.2.160.0270.04311.59
5.2.150.0330.02711.59
5.2.140.0330.02311.59
5.2.130.0230.03711.59
5.2.120.0430.04011.59
5.2.110.0270.02711.59
5.2.100.0230.03011.59
5.2.90.0370.04711.59
5.2.80.0230.03011.59
5.2.70.0300.03311.59
5.2.60.0330.02711.59
5.2.50.0270.04711.59
5.2.40.0170.04011.59
5.2.30.0270.03011.59
5.2.20.0170.03711.59
5.2.10.0200.02711.59
5.2.00.0230.02311.59
5.1.60.0230.03311.59
5.1.50.0370.03311.59
5.1.40.0430.02711.59
5.1.30.0300.05311.59
5.1.20.0370.04011.59
5.1.10.0330.04711.59
5.1.00.0300.03011.59
5.0.50.0230.03711.59
5.0.40.0200.02311.59
5.0.30.0200.06311.59
5.0.20.0070.03011.59
5.0.10.0200.03711.59
5.0.00.0200.05011.59
4.4.90.0100.02311.59
4.4.80.0130.01711.59
4.4.70.0100.02011.59
4.4.60.0200.03011.59
4.4.50.0130.02311.59
4.4.40.0100.04311.59
4.4.30.0130.02711.59
4.4.20.0270.02711.59
4.4.10.0200.02311.59
4.4.00.0230.04711.59
4.3.110.0130.03011.59
4.3.100.0200.02711.59
4.3.90.0130.02011.59
4.3.80.0200.02011.59
4.3.70.0170.01011.59
4.3.60.0170.03011.59
4.3.50.0200.01711.59
4.3.40.0130.05011.59
4.3.30.0100.02011.59
4.3.20.0130.03311.59
4.3.10.0070.02311.59
4.3.00.0100.03311.59

preferences:
61.84 ms | 401 KiB | 5 Q