3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array("a", "b", "c", "d", "e"); $output = array_slice($input, 5); print_R($output);

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.0140.00416.38
8.3.50.0270.00921.15
8.3.40.0150.00618.54
8.3.30.0070.00718.49
8.3.20.0050.00320.40
8.3.10.0070.00021.68
8.3.00.0080.00320.95
8.2.180.0000.01416.36
8.2.170.0140.00722.96
8.2.160.0130.00720.45
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00420.92
8.2.120.0000.00726.35
8.2.110.0030.00620.97
8.2.100.0040.00717.78
8.2.90.0040.00419.30
8.2.80.0040.00418.08
8.2.70.0060.00317.91
8.2.60.0000.00917.63
8.2.50.0060.00318.10
8.2.40.0000.00820.42
8.2.30.0030.00519.19
8.2.20.0040.00418.04
8.2.10.0000.00717.92
8.2.00.0000.00717.62
8.1.280.0140.00425.92
8.1.270.0040.00422.18
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0110.00020.97
8.1.220.0000.00717.78
8.1.210.0080.00418.77
8.1.200.0040.00417.35
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0040.00418.45
8.1.160.0030.00620.61
8.1.150.0000.00821.95
8.1.140.0000.00719.50
8.1.130.0030.00317.51
8.1.120.0070.00017.37
8.1.110.0000.00717.38
8.1.100.0040.00417.37
8.1.90.0030.00517.37
8.1.80.0040.00417.40
8.1.70.0000.00717.34
8.1.60.0040.00417.42
8.1.50.0040.00417.40
8.1.40.0040.00417.34
8.1.30.0000.00817.59
8.1.20.0060.00317.49
8.1.10.0040.00417.30
8.1.00.0060.00317.41
8.0.300.0000.00719.88
8.0.290.0000.00816.58
8.0.280.0030.00318.38
8.0.270.0000.00817.10
8.0.260.0000.00617.18
8.0.250.0030.00316.80
8.0.240.0030.00316.88
8.0.230.0070.00016.76
8.0.220.0030.00516.71
8.0.210.0030.00316.79
8.0.200.0030.00516.86
8.0.190.0000.00716.87
8.0.180.0040.00416.82
8.0.170.0000.00816.70
8.0.160.0040.00416.79
8.0.150.0000.00716.77
8.0.140.0040.00316.79
8.0.130.0000.00513.21
8.0.120.0000.00816.79
8.0.110.0070.00016.67
8.0.100.0050.00216.68
8.0.90.0080.00016.84
8.0.80.0060.01016.77
8.0.70.0040.00416.71
8.0.60.0000.00816.70
8.0.50.0040.00416.65
8.0.30.0080.01017.14
8.0.20.0120.00717.40
8.0.10.0020.00516.89
8.0.00.0070.01016.62
7.4.330.0060.00015.55
7.4.320.0030.00316.42
7.4.300.0070.00016.43
7.4.290.0070.00016.55
7.4.280.0000.00716.47
7.4.270.0030.00316.47
7.4.260.0030.00316.43
7.4.250.0000.00716.38
7.4.240.0000.00716.45
7.4.230.0000.00716.60
7.4.220.0030.01316.54
7.4.210.0110.00516.57
7.4.200.0040.00416.43
7.4.160.0120.00516.38
7.4.150.0060.01217.40
7.4.140.0080.00917.86
7.4.130.0090.00916.44
7.4.120.0100.00716.40
7.4.110.0100.00616.52
7.4.100.0140.00916.45
7.4.90.0140.00416.34
7.4.80.0130.00319.39
7.4.70.0120.00416.43
7.4.60.0110.00416.44
7.4.50.0110.00416.23
7.4.40.0110.00716.30
7.4.30.0060.00916.44
7.4.00.0070.00714.96
7.3.330.0000.00612.99
7.3.320.0000.00512.97
7.3.310.0030.00316.06
7.3.300.0000.00616.15
7.3.290.0040.00416.09
7.3.280.0070.01116.13
7.3.270.0060.01017.40
7.3.260.0130.00516.38
7.3.250.0100.00616.17
7.3.240.0100.00816.32
7.3.230.0160.00616.39
7.3.210.0130.00716.04
7.3.200.0110.00716.11
7.3.190.0130.00316.26
7.3.180.0060.01016.10
7.3.170.0080.00816.27
7.3.160.0060.01516.32
7.2.330.0030.01416.60
7.2.320.0080.00816.21
7.2.310.0100.00716.66
7.2.300.0030.01516.64
7.2.290.0060.01116.66
7.2.60.0030.00916.70
7.2.00.0030.01219.13
7.1.200.0000.01415.88
7.1.70.0070.00317.04
7.1.60.0000.01417.20
7.1.00.0000.08022.54
7.0.200.0250.00714.82
7.0.130.0100.06022.21
7.0.120.0100.05322.07
7.0.110.0030.06022.02
7.0.100.0070.05722.11
7.0.90.0130.05722.04
7.0.80.0170.05022.10
7.0.70.0000.06022.10
7.0.60.0100.05322.00
7.0.50.0100.05321.99
7.0.40.0100.05022.11
7.0.30.0200.04322.05
7.0.20.0200.04722.04
7.0.10.0070.06022.07
7.0.00.0070.05322.06
5.6.280.0070.06721.10
5.6.270.0100.06721.13
5.6.260.0170.04321.07
5.6.250.0100.05320.86
5.6.240.0170.05020.74
5.6.230.0100.06021.00
5.6.220.0130.05021.06
5.6.210.0030.05721.05
5.6.200.0100.05720.82
5.6.190.0130.05320.92
5.6.180.0200.04321.03
5.6.170.0100.05320.92
5.6.160.0030.06020.86
5.6.150.0030.06320.81
5.6.140.0100.05720.77
5.6.130.0130.05020.81
5.6.120.0130.07320.73
5.6.110.0100.06020.91
5.6.100.0070.06020.75
5.6.90.0100.05320.84
5.6.80.0070.05320.35
5.6.70.0100.05320.34
5.6.60.0070.05720.38
5.6.50.0170.04720.45
5.6.40.0100.05320.18
5.6.30.0070.05720.20
5.6.20.0070.06020.24
5.6.10.0030.06020.13
5.6.00.0200.04720.36

preferences:
61.09 ms | 401 KiB | 5 Q