3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://foobar.com/foo/bar/1?baz=qux#fragment/foo"; $lastSegment = basename(parse_url($url, PHP_URL_PATH));

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.0080.00818.06
8.3.50.0130.00721.97
8.3.40.0040.01118.54
8.3.30.0070.00718.79
8.3.20.0040.00420.34
8.3.10.0070.00021.73
8.3.00.0060.00318.96
8.2.180.0110.01116.63
8.2.170.0100.01022.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00320.88
8.2.110.0030.00720.53
8.2.100.0100.00317.72
8.2.90.0040.00419.12
8.2.80.0030.00617.97
8.2.70.0000.00817.34
8.2.60.0130.00017.68
8.2.50.0050.00318.07
8.2.40.0080.00018.16
8.2.30.0030.00617.91
8.2.20.0070.00017.54
8.2.10.0000.00718.04
8.2.00.0000.00817.65
8.1.280.0140.00325.92
8.1.270.0080.00018.65
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0050.00520.79
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0030.00618.44
8.1.160.0000.00721.95
8.1.150.0050.00318.72
8.1.140.0030.00619.08
8.1.130.0070.00017.89
8.1.120.0040.00317.38
8.1.110.0040.00417.27
8.1.100.0000.00717.31
8.1.90.0000.00717.41
8.1.80.0030.00317.21
8.1.70.0030.00317.39
8.1.60.0060.00317.48
8.1.50.0070.00417.44
8.1.40.0030.00617.37
8.1.30.0030.00617.55
8.1.20.0040.00417.57
8.1.10.0000.00717.41
8.1.00.0000.00717.31
8.0.300.0000.00818.77
8.0.290.0060.00316.58
8.0.280.0000.00718.39
8.0.270.0070.00017.13
8.0.260.0030.00317.23
8.0.250.0030.00316.91
8.0.240.0030.00516.84
8.0.230.0030.00316.93
8.0.220.0030.00316.75
8.0.210.0070.00016.89
8.0.200.0090.00316.75
8.0.190.0000.00816.75
8.0.180.0030.00516.75
8.0.170.0000.00716.73
8.0.160.0040.00416.79
8.0.150.0030.00316.66
8.0.140.0000.00716.68
8.0.130.0000.00913.26
8.0.120.0000.00816.83
8.0.110.0020.00516.74
8.0.100.0040.00416.71
8.0.90.0080.00016.73
8.0.80.0060.01616.81
8.0.70.0000.00716.81
8.0.60.0050.00316.66
8.0.50.0040.00416.81
8.0.30.0140.01016.94
8.0.20.0080.01017.40
8.0.10.0040.00417.01
8.0.00.0090.00816.60
7.4.330.0050.00015.17
7.4.320.0000.00716.39
7.4.300.0030.00316.45
7.4.290.0060.00016.51
7.4.280.0050.00316.40
7.4.270.0030.00616.39
7.4.260.0000.01016.32
7.4.250.0000.00716.32
7.4.240.0030.00416.47
7.4.230.0070.00016.51
7.4.220.0140.00316.53
7.4.210.0100.01016.45
7.4.200.0040.00316.24
7.4.160.0060.01016.35
7.4.150.0100.00717.40
7.4.140.0120.01017.86
7.4.130.0070.01016.53
7.4.120.0060.01316.37
7.4.110.0070.01116.33
7.4.100.0120.00616.36
7.4.90.0170.00016.48
7.4.80.0100.00719.39
7.4.70.0150.00616.62
7.4.60.0080.00816.19
7.4.50.0040.00416.44
7.4.40.0100.00716.38
7.4.30.0130.01016.45
7.4.00.0120.00315.09
7.3.330.0050.00013.07
7.3.320.0000.00612.90
7.3.310.0030.00316.03
7.3.300.0060.00016.13
7.3.290.0080.00516.13
7.3.280.0060.00916.11
7.3.270.0230.00017.40
7.3.260.0100.00616.20
7.3.250.0120.00916.35
7.3.240.0080.01116.15
7.3.230.0150.00316.39
7.3.210.0070.01016.30
7.3.200.0070.01419.39
7.3.190.0060.00916.34
7.3.180.0000.01616.41
7.3.170.0060.01216.27
7.3.160.0110.00616.39
7.3.120.0090.00614.75
7.3.110.0070.01014.65
7.3.100.0080.00514.65
7.3.90.0040.01214.67
7.3.80.0000.01214.67
7.3.70.0060.00814.49
7.3.60.0030.00914.71
7.3.50.0080.00714.54
7.3.40.0030.00914.53
7.3.30.0020.01214.74
7.3.20.0020.00916.47
7.3.10.0070.00816.48
7.3.00.0070.00816.34
7.2.330.0100.00716.55
7.2.320.0090.00916.36
7.2.310.0090.00916.63
7.2.300.0120.01216.40
7.2.290.0120.00916.57
7.2.240.0090.00514.82
7.2.230.0090.00614.92
7.2.220.0110.00514.63
7.2.210.0070.00814.79
7.2.200.0050.00914.82
7.2.190.0050.00914.83
7.2.180.0080.00314.83
7.2.170.0080.00814.99
7.2.160.0060.00814.80
7.2.150.0040.01016.61
7.2.140.0080.00516.65
7.2.130.0080.00716.61
7.2.120.0040.01216.56
7.2.110.0050.01316.47
7.2.100.0030.01116.72
7.2.90.0130.00516.63
7.2.80.0090.00516.55
7.2.70.0050.00916.64
7.2.60.0100.00816.78
7.2.50.0060.00816.58
7.2.40.0100.00716.54
7.2.30.0080.00616.61
7.2.20.0060.01016.73
7.2.10.0100.00316.67
7.2.00.0070.00817.31
7.1.330.0060.01015.87
7.1.320.0040.00915.77
7.1.310.0090.00515.78
7.1.300.0050.00615.53
7.1.290.0090.00515.67
7.1.280.0030.01115.67
7.1.270.0030.01115.45
7.1.260.0100.00315.78
7.1.250.0040.00915.74
7.1.200.0030.00915.64
7.1.100.0070.00717.68
7.1.70.0000.00817.13
7.1.60.0100.01319.46
7.1.50.0270.00734.72
7.1.00.0030.07722.57
7.0.200.0030.00616.69
7.0.140.0070.03022.04
7.0.60.0100.07720.02
7.0.50.0030.04317.88
7.0.40.0030.07020.41
7.0.30.0300.05020.03
7.0.20.0200.04320.00
7.0.10.0070.09020.17
7.0.00.0130.07020.18
5.6.280.0030.07321.14
5.6.210.0170.07020.75
5.6.200.0070.08018.12
5.6.190.0070.04020.57
5.6.180.0200.04020.36
5.6.170.0170.04320.52
5.6.160.0070.05020.33
5.6.150.0030.04018.16
5.6.140.0030.08318.20
5.6.130.0070.06718.22
5.6.120.0130.07721.14
5.6.110.0070.09021.06
5.6.100.0130.08720.98
5.6.90.0100.08020.99
5.6.80.0070.06720.40
5.5.350.0100.07320.32
5.5.340.0100.06018.02
5.5.330.0030.04320.19
5.5.320.0400.06020.32
5.5.310.0200.04720.21
5.5.300.0030.07318.00
5.5.290.0070.04317.98
5.5.280.0070.07320.89
5.5.270.0070.07720.75
5.5.260.0070.03720.87
5.5.250.0100.08020.57
5.5.240.3670.03720.28
5.4.450.0330.06019.41
5.4.440.0530.05719.64
5.4.430.0130.05019.50
5.4.420.0030.06019.25
5.4.410.0100.05019.34
5.4.400.0130.06019.19
5.4.390.1700.06018.51
5.4.380.0200.08018.74
5.4.370.0400.06318.73
5.4.360.0330.06318.68
5.4.350.0130.06018.61
5.4.340.0330.04318.51
5.4.320.0100.06718.56
5.4.310.0100.05718.45
5.4.300.0300.07018.48
5.4.290.0370.04318.51
5.4.280.0230.05718.71
5.4.270.0270.05718.66
5.4.260.0200.05318.71
5.4.250.0300.04718.48
5.4.240.0130.06718.64
5.4.230.0300.05018.65
5.4.220.0270.05718.68
5.4.210.0170.06718.59
5.4.200.0270.05716.59
5.4.190.0230.06018.71
5.4.180.0270.05018.70
5.4.170.0230.05718.55
5.4.160.0300.05718.65
5.4.150.0300.05718.68
5.4.140.0400.04716.17
5.4.130.0400.05016.16
5.4.120.0330.05016.15
5.4.110.0200.05716.06
5.4.100.0330.04716.05
5.4.90.0330.06716.29
5.4.80.0230.05316.17
5.4.70.0230.05716.14
5.4.60.0230.05016.23
5.4.50.0130.05316.09
5.4.40.0270.05316.32
5.4.30.0270.05316.18
5.4.20.0230.07316.32
5.4.10.0170.05316.09
5.4.00.0300.04015.60

preferences:
45.19 ms | 401 KiB | 5 Q