3v4l.org

run code in 300+ PHP versions simultaneously
<?php $URI_Parts = explode('/', $_SERVER['REQUEST_URI']); $URI_FirstSegment = $URI_Parts[0]; print($URI_FirstSegment);

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.0070.01416.63
8.3.50.0180.00422.07
8.3.40.0090.00618.84
8.3.30.0080.00619.01
8.3.20.0070.00020.22
8.3.10.0030.00623.48
8.3.00.0040.00419.25
8.2.180.0090.00918.25
8.2.170.0140.00722.96
8.2.160.0070.00720.44
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0070.00726.16
8.2.120.0050.00322.06
8.2.110.0090.00021.17
8.2.100.0000.01118.16
8.2.90.0030.00519.17
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00918.05
8.2.50.0040.00418.10
8.2.40.0000.00720.59
8.2.30.0040.00419.35
8.2.20.0000.00717.85
8.2.10.0030.00618.11
8.2.00.0000.00917.86
8.1.280.0070.01425.92
8.1.270.0070.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.51
8.1.230.0110.00020.31
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0000.00918.65
8.1.160.0000.00718.79
8.1.150.0000.00720.01
8.1.140.0040.00417.57
8.1.130.0070.00017.75
8.1.120.0030.00317.49
8.1.110.0070.00017.45
8.1.100.0070.00017.45
8.1.90.0070.00017.44
8.1.80.0070.00017.37
8.1.70.0000.00717.45
8.1.60.0000.00817.61
8.1.50.0080.00017.45
8.1.40.0000.00817.53
8.1.30.0030.00517.59
8.1.20.0040.00417.48
8.1.10.0060.00317.49
8.1.00.0020.00517.54
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.40
8.0.270.0040.00417.36
8.0.260.0030.00317.16
8.0.250.0070.00017.06
8.0.240.0000.00717.00
8.0.230.0040.00417.05
8.0.220.0000.00716.82
8.0.210.0060.00016.83
8.0.200.0000.00716.86
8.0.190.0000.00716.90
8.0.180.0040.00417.00
8.0.170.0040.00416.97
8.0.160.0040.00416.85
8.0.150.0030.00516.91
8.0.140.0000.00716.92
8.0.130.0070.00013.34
8.0.120.0000.00816.91
8.0.110.0070.00016.95
8.0.100.0040.00416.90
8.0.90.0070.00016.93
8.0.80.0120.00416.92
8.0.70.0080.00016.73
8.0.60.0040.00416.95
8.0.50.0000.00716.77
8.0.30.0100.01017.14
8.0.20.0100.01017.40
8.0.10.0030.00516.90
8.0.00.0090.00916.73
7.4.330.0020.00215.02
7.4.320.0000.00616.43
7.4.300.0030.00316.50
7.4.290.0030.00316.47
7.4.280.0030.00316.49
7.4.270.0030.00316.50
7.4.260.0000.00716.39
7.4.250.0040.00416.55
7.4.240.0020.00516.59
7.4.230.0070.00016.43
7.4.220.0110.00616.55
7.4.210.0060.01116.55
7.4.200.0000.00716.71
7.4.190.0050.00216.69
7.4.160.0070.01416.54
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0030.01316.53
7.4.120.0090.01116.71
7.4.110.0070.01116.65
7.4.100.0140.00916.56
7.4.90.0070.01016.45
7.4.80.0030.01519.39
7.4.70.0070.01016.32
7.4.60.0120.00316.31
7.4.50.0000.00516.63
7.4.40.0030.01022.77
7.4.30.0140.00316.63
7.4.00.0130.00314.93
7.3.330.0020.00213.06
7.3.320.0000.00513.18
7.3.310.0060.00316.19
7.3.300.0030.00316.15
7.3.290.0100.00716.43
7.3.280.0120.00416.42
7.3.270.0140.00717.40
7.3.260.0090.01316.43
7.3.250.0120.00816.51
7.3.240.0060.01116.55
7.3.230.0070.01016.49
7.3.210.0090.00916.35
7.3.200.0110.01119.39
7.3.190.0060.01216.42
7.3.180.0040.01316.48
7.3.170.0110.00516.45
7.3.160.0070.01016.57
7.3.120.0050.01214.96
7.2.330.0070.01016.24
7.2.320.0040.01216.56
7.2.310.0180.00616.31
7.2.300.0060.00916.36
7.2.290.0170.00016.52
7.2.00.0040.00819.10
7.1.100.0030.00618.21
7.1.70.0000.00817.18
7.1.60.0100.01019.46
7.1.50.0070.00716.95
7.1.00.0030.07722.42
7.0.200.0000.00716.82
7.0.140.0070.07022.15
7.0.60.0130.07719.98
7.0.50.0070.08317.80
7.0.40.0030.08720.04
7.0.30.0500.07020.01
7.0.20.0330.07020.12
7.0.10.0000.06320.09
7.0.00.0070.08020.20
5.6.280.0030.07320.98
5.6.210.0030.04020.72
5.6.200.0130.07318.22
5.6.190.0030.08020.53
5.6.180.0270.06720.63
5.6.170.0400.06020.50
5.6.160.0070.09020.54
5.6.150.0070.08018.23
5.6.140.0130.05718.18
5.6.130.0070.08018.11
5.6.120.0130.05721.01
5.6.110.0130.06321.09
5.6.100.0070.04720.99
5.6.90.0170.07720.99
5.6.80.0170.07320.45
5.5.350.0100.07720.40
5.5.340.0030.07317.92
5.5.330.0030.05320.29
5.5.320.0300.08020.29
5.5.310.0230.08020.29
5.5.300.0070.05317.91
5.5.290.0030.04017.96
5.5.280.0000.07020.87
5.5.270.0070.05320.78
5.5.260.0130.09020.86
5.5.250.0100.08320.58
5.5.240.4130.04320.27
5.4.450.0430.05019.45
5.4.440.0100.05719.51
5.4.430.0070.06019.52
5.4.420.0130.05319.51
5.4.410.0070.05719.43
5.4.400.0200.04318.85
5.4.390.0200.04318.94
5.4.380.0430.05018.46
5.4.370.0330.05018.46
5.4.360.0230.05718.59
5.4.350.0230.05718.61
5.4.340.0230.05318.72
5.4.320.0070.03912.45
5.4.310.0050.04212.45
5.4.300.0070.04012.45
5.4.290.0040.04112.45
5.4.280.0170.10412.32
5.4.270.0160.07212.32
5.4.260.0200.05812.32
5.4.250.0120.06312.32
5.4.240.0100.05012.32
5.4.230.0080.05812.31
5.4.220.0150.06612.31
5.4.210.0230.06712.31
5.4.200.0080.05212.31
5.4.190.0120.05812.30
5.4.180.0120.05712.31
5.4.170.0130.05812.32
5.4.160.0180.06412.31
5.4.150.0180.07312.31
5.4.140.0190.07112.00
5.4.130.0100.05011.98
5.4.120.0170.04911.95
5.4.110.0150.05011.94
5.4.100.0170.07411.94
5.4.90.0100.05411.94
5.4.80.0120.06611.94
5.4.70.0120.06511.93
5.4.60.0190.05611.93
5.4.50.0170.05811.93
5.4.40.0040.04011.92
5.4.30.0090.04211.92
5.4.20.0140.05211.92
5.4.10.0070.03411.91
5.4.00.0070.03511.41
5.3.290.0030.05012.80
5.3.280.0110.04912.71
5.3.270.0130.04612.72
5.3.260.0070.04812.71
5.3.250.0100.04612.72
5.3.240.0110.05212.72
5.3.230.0150.08212.71
5.3.220.0160.04912.68
5.3.210.0330.10412.68
5.3.200.0090.04612.68
5.3.190.0080.05412.68
5.3.180.0080.03912.68
5.3.170.0160.05612.67
5.3.160.0230.08612.67
5.3.150.0120.05112.67
5.3.140.0070.05612.66
5.3.130.0120.04912.65
5.3.120.0130.05912.66
5.3.110.0130.05712.66
5.3.100.0150.04412.12
5.3.90.0130.04912.09
5.3.80.0190.06312.07
5.3.70.0080.05612.08
5.3.60.0220.05212.06
5.3.50.0120.05812.00
5.3.40.0150.05612.00
5.3.30.0160.09011.94
5.3.20.0190.07111.70
5.3.10.0200.07811.66
5.3.00.0110.05511.66
5.2.170.0060.0449.15
5.2.160.0270.0699.15
5.2.150.0240.0749.15
5.2.140.0130.0499.15
5.2.130.0090.0539.11
5.2.120.0080.0319.11
5.2.110.0150.0569.11
5.2.100.0080.0379.12
5.2.90.0250.0319.11
5.2.80.0080.0399.11
5.2.70.0140.0739.10
5.2.60.0230.0529.06
5.2.50.0060.0379.04
5.2.40.0110.0509.00
5.2.30.0070.0368.98
5.2.20.0080.0418.97
5.2.10.0030.0398.90
5.2.00.0050.0428.76
5.1.60.0300.0898.04
5.1.50.0070.0358.04
5.1.40.0180.1098.02
5.1.30.0100.0348.37
5.1.20.0130.0288.39
5.1.10.0120.0318.12
5.1.00.0120.0568.13
5.0.50.0020.0576.59
5.0.40.0110.0366.46
5.0.30.0100.0666.27
5.0.20.0070.0606.25
5.0.10.0070.0456.22
5.0.00.0080.0486.21
4.4.90.0040.0284.78
4.4.80.0070.0194.75
4.4.70.0070.0254.76
4.4.60.0040.0244.76
4.4.50.0070.0224.77
4.4.40.0040.0334.71
4.4.30.0060.0154.76
4.4.20.0040.0204.84
4.4.10.0020.0244.85
4.4.00.0060.0294.76
4.3.110.0110.0444.67
4.3.100.0050.0304.66
4.3.90.0070.0184.63
4.3.80.0050.0304.58
4.3.70.0030.0214.63
4.3.60.0070.0194.63
4.3.50.0050.0194.63
4.3.40.0060.0244.54
4.3.30.0050.0163.27
4.3.20.0050.0143.25
4.3.10.0070.0133.21
4.3.00.0100.0208.61

preferences:
56.31 ms | 401 KiB | 5 Q