3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [0, 1, 2]; $ref =& $array; // Necessary to trigger the old behavior foreach ($array as $val) { var_dump($val); unset($array[1]); }

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.1.130.0000.00719.01
8.1.120.0000.00717.35
8.1.110.0040.00417.49
8.1.100.0040.00417.43
8.1.90.0040.00417.36
8.1.80.0000.00717.39
8.1.70.0000.00717.40
8.1.60.0030.00617.61
8.1.50.0000.00817.43
8.1.40.0000.00717.40
8.1.30.0080.00017.69
8.1.20.0030.00517.64
8.1.10.0040.00717.32
8.1.00.0090.00017.45
8.0.260.0000.00617.13
8.0.250.0000.00716.97
8.0.240.0030.00316.95
8.0.230.0030.00316.93
8.0.220.0070.00316.78
8.0.210.0070.00016.88
8.0.200.0040.00416.78
8.0.190.0040.00416.94
8.0.180.0070.00016.91
8.0.170.0040.00416.94
8.0.160.0070.00016.85
8.0.150.0050.00216.82
8.0.140.0030.00316.74
8.0.130.0030.00313.30
8.0.120.0000.00716.88
8.0.110.0040.00416.77
8.0.100.0040.00416.75
8.0.90.0000.00816.88
8.0.80.0090.00716.89
8.0.70.0040.00417.00
8.0.60.0040.00416.98
8.0.50.0080.00016.73
8.0.30.0070.00816.80
8.0.20.0100.00717.27
8.0.10.0040.01317.05
8.0.00.0100.00916.88
7.4.330.0000.00515.55
7.4.320.0000.00616.43
7.4.300.0030.00316.41
7.4.290.0000.00716.54
7.4.280.0080.00016.39
7.4.270.0070.00016.55
7.4.260.0040.00416.47
7.4.250.0070.00016.53
7.4.240.0000.00716.50
7.4.230.0030.00316.38
7.4.220.0070.00016.38
7.4.210.0030.01116.58
7.4.200.0030.00316.39
7.4.160.0080.01116.46
7.4.150.0100.01016.45
7.4.140.0110.00817.59
7.4.130.0030.01316.49
7.4.120.0080.01116.53
7.4.110.0110.00816.50
7.4.100.0050.01216.38
7.4.90.0100.00916.40
7.4.80.0100.00816.28
7.4.70.0090.00916.31
7.4.60.0080.01216.40
7.4.50.0100.00816.30
7.4.40.0080.01016.34
7.4.30.0090.01216.46
7.4.20.0120.00616.36
7.4.10.0100.00816.48
7.4.00.0110.00816.42
7.3.330.0000.00513.10
7.3.320.0030.00313.17
7.3.310.0000.00616.08
7.3.300.0030.00316.17
7.3.290.0070.00016.28
7.3.280.0130.00416.33
7.3.270.0100.00316.29
7.3.260.0110.00616.32
7.3.250.0070.00716.27
7.3.240.0100.01116.35
7.3.230.0060.01116.33
7.3.220.0110.00616.28
7.3.210.0110.01016.21
7.3.200.0070.01216.29
7.3.190.0090.00916.24
7.3.180.0100.01016.31
7.3.170.0140.00616.23
7.3.160.0130.00816.28
7.3.150.0060.01216.24
7.3.140.0100.01016.38
7.3.130.0130.00616.21
7.3.120.0090.00716.27
7.3.110.0110.00716.28
7.3.100.0110.00716.24
7.3.90.0080.00916.43
7.3.80.0070.01216.21
7.3.70.0120.00716.34
7.3.60.0130.00516.20
7.3.50.0090.00916.27
7.3.40.0140.00416.30
7.3.30.0070.01216.27
7.3.20.0110.00816.88
7.3.10.0050.01216.92
7.3.00.0100.00716.91
7.2.340.0150.00916.51
7.2.330.0090.01316.40
7.2.320.0090.01316.47
7.2.310.0140.00716.46
7.2.300.0150.00716.41
7.2.290.0110.01216.44
7.2.280.0150.00816.39
7.2.270.0110.01216.36
7.2.260.0140.00916.44
7.2.250.0130.00716.41
7.2.240.0110.01016.35
7.2.230.0110.01216.48
7.2.220.0120.00916.42
7.2.210.0080.01316.43
7.2.200.0120.01016.46
7.2.190.0110.01016.43
7.2.180.0140.00816.48
7.2.170.0120.00916.46
7.2.160.0120.00816.50
7.2.150.0160.00717.17
7.2.140.0130.01017.11
7.2.130.0140.00617.06
7.2.120.0090.01517.18
7.2.110.0120.01117.11
7.2.100.0160.00617.14
7.2.90.0130.00917.10
7.2.80.0180.00617.06
7.2.70.0130.00917.03
7.2.60.0120.01417.07
7.2.50.0110.01017.05
7.2.40.0120.01317.15
7.2.30.0130.01117.13
7.2.20.0160.00817.08
7.2.10.0160.00617.12
7.2.00.0150.00817.05
7.1.330.0220.00716.16
7.1.320.0500.01116.06
7.1.310.0310.00316.13
7.1.300.1020.01216.08
7.1.290.0210.00916.16
7.1.280.0220.00816.03
7.1.270.0230.00716.16
7.1.260.0150.01216.09
7.1.250.0190.00916.07
7.1.240.0250.00615.99
7.1.230.0180.01316.09
7.1.220.0210.00916.12
7.1.210.0190.01416.05
7.1.200.0200.01016.12
7.1.190.0230.00816.12
7.1.180.0220.00716.06
7.1.170.0220.01016.01
7.1.160.0250.00816.14
7.1.150.0350.00916.26
7.1.140.0180.01116.07
7.1.130.0190.01116.09
7.1.120.0630.01116.13
7.1.110.0210.00916.12
7.1.100.0210.00716.08
7.1.90.0180.00916.02
7.1.80.0200.00816.21
7.1.70.0200.00816.06
7.1.60.0190.01016.18
7.1.50.0210.00716.01
7.1.40.0180.01116.21
7.1.30.0260.00616.10
7.1.20.0190.01016.73
7.1.10.0250.00716.22
7.1.00.0290.00416.03
7.0.330.0180.01015.84
7.0.320.0140.01315.85
7.0.310.0200.00815.74
7.0.300.0170.01215.90
7.0.290.0200.00915.89
7.0.280.0220.00815.84
7.0.270.0170.01115.77
7.0.260.0180.01015.77
7.0.250.0170.01515.95
7.0.240.0200.00915.98
7.0.230.0200.00916.00
7.0.220.0190.00815.99
7.0.210.0210.00615.85
7.0.200.0230.00615.81
7.0.190.0200.00715.82
7.0.180.0230.00415.78
7.0.170.0170.01115.89
7.0.160.0170.01416.42
7.0.150.0170.00916.42
7.0.140.0220.01015.79
7.0.130.0240.00515.92
7.0.120.0180.01015.82
7.0.110.0250.00815.86
7.0.100.0200.00815.85
7.0.90.0240.00715.80
7.0.80.0220.00615.77
7.0.70.0240.00515.85
7.0.60.0220.00615.82
7.0.50.0210.00815.79
7.0.40.0210.00915.81
7.0.30.0220.00915.81
7.0.20.0180.01115.82
7.0.10.0190.01115.74
7.0.00.0170.01015.81
5.6.400.0180.01015.79
5.6.390.0200.01315.84
5.6.380.0210.01015.81
5.6.370.0170.01515.89
5.6.360.0180.01315.92
5.6.350.0180.01315.96
5.6.340.0210.00915.78
5.6.330.0170.01415.86
5.6.320.0190.01015.81
5.6.310.0190.01115.90
5.6.300.0180.01415.93
5.6.290.0190.01115.80
5.6.280.0170.01115.80
5.6.270.0210.01015.80
5.6.260.0200.01115.92
5.6.250.0160.01315.74
5.6.240.0180.01315.80
5.6.230.0210.00715.89
5.6.220.0210.00715.91
5.6.210.0220.01015.95
5.6.200.0210.00915.98
5.6.190.0150.01515.80
5.6.180.0230.00815.86
5.6.170.0200.01115.90
5.6.160.0190.01115.92
5.6.150.0210.01315.88
5.6.140.0180.01315.91
5.6.130.0190.01116.02
5.6.120.0200.00815.89
5.6.110.0200.00915.74
5.6.100.0190.01115.81
5.6.90.0210.01315.70
5.6.80.0150.01415.66
5.6.70.0180.00915.71
5.6.60.0170.01015.79
5.6.50.0150.01215.81
5.6.40.0180.00915.73
5.6.30.0210.00815.73
5.6.20.0190.00915.77
5.6.10.0180.01115.86
5.6.00.0180.01115.74

preferences:
12.75 ms | 406 KiB | 5 Q