3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayIterator(range('a', 'z')); echo $a->next(), PHP_EOL, $a->current(), PHP_EOL; $a->offsetUnset($a->key()); echo $a->current(), PHP_EOL, $a->key();;

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.130.0130.00316.34
8.3.120.0060.00318.51
8.3.110.0040.00420.94
8.3.100.0060.00316.64
8.3.90.0100.01026.77
8.3.80.0100.00017.97
8.3.70.0140.00716.50
8.3.60.0070.01416.63
8.3.50.0140.00821.04
8.3.40.0040.01118.70
8.3.30.0090.00618.54
8.3.20.0040.00421.60
8.3.10.0060.00320.40
8.3.00.0040.00421.60
8.2.250.0090.00616.48
8.2.240.0040.00417.24
8.2.230.0040.00422.58
8.2.220.0060.00324.06
8.2.210.0120.00626.77
8.2.200.0090.00018.88
8.2.190.0040.01116.75
8.2.180.0060.01218.54
8.2.170.0130.00722.96
8.2.160.0090.00619.41
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00321.04
8.2.120.0040.00426.35
8.2.110.0000.00921.13
8.2.100.0080.00417.78
8.2.90.0000.00817.75
8.2.80.0110.00018.82
8.2.70.0000.00817.63
8.2.60.0000.00817.50
8.2.50.0060.00317.55
8.2.40.0030.00520.95
8.2.30.0040.00419.24
8.2.20.0040.00417.92
8.2.10.0000.00717.86
8.2.00.0040.00417.68
8.1.300.0100.00720.14
8.1.290.0060.00330.84
8.1.280.0090.01225.92
8.1.270.0080.00023.89
8.1.260.0040.00728.09
8.1.250.0000.01428.09
8.1.240.0090.00023.86
8.1.230.0060.00622.80
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00317.35
8.1.190.0080.00017.00
8.1.180.0080.00018.10
8.1.170.0090.00018.47
8.1.160.0040.00422.17
8.1.150.0000.00818.86
8.1.140.0040.00419.51
8.1.130.0030.00317.68
8.1.120.0050.00317.45
8.1.110.0050.00317.38
8.1.100.0040.00417.31
8.1.90.0050.00217.28
8.1.80.0030.00717.34
8.1.70.0030.00317.39
8.1.60.0030.00617.57
8.1.50.0030.00517.45
8.1.40.0030.00517.33
8.1.30.0000.00817.48
8.1.20.0040.00417.54
8.1.10.0040.00417.58
8.1.00.0060.00617.49
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0030.00317.23
8.0.260.0000.00917.39
8.0.250.0070.00016.89
8.0.240.0030.00316.91
8.0.230.0000.00816.85
8.0.220.0040.00416.88
8.0.210.0030.00316.66
8.0.200.0060.00016.89
8.0.190.0040.00416.90
8.0.180.0040.00416.82
8.0.170.0030.00316.81
8.0.160.0000.00716.91
8.0.150.0000.00716.73
8.0.140.0070.00016.82
8.0.130.0060.00013.27
8.0.120.0040.00416.79
8.0.110.0000.00916.71
8.0.100.0050.00316.62
8.0.90.0040.00416.88
8.0.80.0080.00816.73
8.0.70.0000.00816.60
8.0.60.0050.00316.72
8.0.50.0080.00016.85
8.0.30.0090.00817.07
8.0.20.0090.01017.40
8.0.10.0000.00716.96
8.0.00.0160.00316.82
7.4.330.0050.00015.21
7.4.320.0060.00016.46
7.4.300.0030.00316.35
7.4.290.0080.00016.44
7.4.280.0040.00316.32
7.4.270.0030.00616.57
7.4.260.0000.00716.52
7.4.250.0040.00416.49
7.4.240.0050.00216.54
7.4.230.0070.00016.60
7.4.220.0120.00916.45
7.4.210.0060.01216.48
7.4.200.0040.00416.46
7.4.160.0070.00816.41
7.4.150.0070.01017.40
7.4.140.0130.00417.86
7.4.130.0100.01016.39
7.4.120.0080.01116.34
7.4.110.0160.00616.38
7.4.100.0140.00316.36
7.4.90.0140.00316.52
7.4.80.0030.01319.39
7.4.70.0080.00816.39
7.4.60.0100.01016.39
7.4.50.0030.01216.26
7.4.40.0080.01216.20
7.4.30.0100.00716.23
7.4.00.0070.01014.47
7.3.330.0030.00313.06
7.3.320.0000.00513.00
7.3.310.0070.00016.09
7.3.300.0000.00716.15
7.3.290.0070.00015.96
7.3.280.0100.00816.15
7.3.270.0040.01417.40
7.3.260.0060.01316.23
7.3.250.0140.00416.32
7.3.240.0070.01316.19
7.3.230.0080.00816.39
7.3.210.0070.01016.39
7.3.200.0100.00716.40
7.3.190.0090.00916.33
7.3.180.0130.01016.38
7.3.170.0120.00416.36
7.3.160.0090.00916.36
7.2.330.0100.00716.69
7.2.320.0140.00316.75
7.2.310.0140.00316.48
7.2.300.0060.01616.39
7.2.290.0040.01516.73
7.2.60.0060.00616.89
7.2.00.0030.01319.47
7.1.200.0030.00315.75
7.1.100.0040.00718.14
7.1.70.0000.01116.86
7.1.60.0030.00717.21
7.1.50.0130.00616.68
7.1.00.0070.07322.25
7.0.200.0390.01214.46
7.0.110.0130.05720.28
7.0.100.0100.06320.29
7.0.90.0030.06320.27
7.0.80.0170.05020.27
7.0.70.0130.05020.31
7.0.60.0100.05720.18
7.0.50.0400.04320.20
7.0.40.0300.05320.32
7.0.30.0330.04720.34
7.0.20.0230.06020.24
7.0.10.0270.05320.32
7.0.00.0230.05720.23
5.6.260.0100.05320.86
5.6.250.0230.04720.98
5.6.240.0100.06021.04
5.6.230.0170.05720.96
5.6.220.0070.05720.99
5.6.210.0130.05020.88
5.6.200.0070.05720.82
5.6.190.0130.05321.08
5.6.180.0030.06021.00
5.6.170.0030.06020.82
5.6.160.0030.06021.02
5.6.150.0100.05720.80
5.6.140.0070.06020.93
5.6.130.0100.05321.08
5.6.120.0100.05321.05
5.6.110.0200.04320.92
5.6.100.0100.06720.98
5.6.90.0130.06320.97
5.6.80.0170.05720.38
5.6.70.0130.05020.46
5.6.60.0070.05720.43
5.6.50.0100.05020.13
5.6.40.0100.05020.41
5.6.30.0100.05720.36
5.6.20.0130.05020.37
5.6.10.0130.04720.29
5.6.00.0100.05020.18

preferences:
66.65 ms | 403 KiB | 5 Q