3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [1, 2], [3, 4], ]; foreach ($array as list($a, $a)) { // $a contains the first element of the nested array, // and $b contains the second element. echo "A: $a; B: $a\n"; }

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.0170.00318.32
8.3.50.0100.01021.98
8.3.40.0070.00718.85
8.3.30.0060.00920.03
8.3.20.0080.00020.31
8.3.10.0070.00022.04
8.3.00.0090.00022.57
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0070.01022.08
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.01826.16
8.2.120.0030.00517.75
8.2.110.0090.00021.92
8.2.100.0090.00318.03
8.2.90.0000.00819.25
8.2.80.0060.00319.39
8.2.70.0000.00817.50
8.2.60.0000.00818.05
8.2.50.0050.00518.07
8.2.40.0030.00718.22
8.2.30.0040.00418.06
8.2.20.0030.00517.78
8.2.10.0040.00417.76
8.2.00.0050.00717.60
8.1.280.0110.00425.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0080.00319.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00717.41
8.1.180.0050.00319.01
8.1.170.0000.00818.57
8.1.160.0070.00018.83
8.1.150.0040.00418.70
8.1.140.0040.00417.43
8.1.130.0030.00317.76
8.1.120.0000.00817.37
8.1.110.0040.00417.43
8.1.100.0040.00417.35
8.1.90.0040.00317.38
8.1.80.0000.00717.50
8.1.70.0030.00317.35
8.1.60.0040.00417.59
8.1.50.0040.00417.57
8.1.40.0000.00817.54
8.1.30.0000.00717.64
8.1.20.0030.00517.63
8.1.10.0050.00217.41
8.1.00.0060.00617.39
8.0.300.0040.00418.77
8.0.290.0040.00417.30
8.0.280.0030.00318.31
8.0.270.0000.00717.24
8.0.260.0030.00316.73
8.0.250.0030.00316.95
8.0.240.0020.00516.99
8.0.230.0070.00016.95
8.0.220.0030.00316.82
8.0.210.0080.00016.95
8.0.200.0060.00016.95
8.0.190.0090.00016.84
8.0.180.0040.00416.84
8.0.170.0050.00316.83
8.0.160.0050.00216.87
8.0.150.0030.00516.82
8.0.140.0000.00816.87
8.0.130.0060.00313.32
8.0.120.0000.00816.84
8.0.110.0000.00716.80
8.0.100.0030.00316.94
8.0.90.0030.00316.98
8.0.80.0110.00416.80
8.0.70.0040.00416.76
8.0.60.0080.00016.95
8.0.50.0040.00416.76
8.0.30.0110.00916.97
8.0.20.0090.01217.40
8.0.10.0040.00416.96
8.0.00.0120.00616.77
7.4.330.0000.00615.00
7.4.320.0000.00716.41
7.4.300.0000.00616.50
7.4.290.0000.00716.64
7.4.280.0000.00716.52
7.4.270.0030.00316.59
7.4.260.0050.00013.27
7.4.250.0070.00016.57
7.4.240.0070.00016.60
7.4.230.0030.00316.61
7.4.220.0110.01116.66
7.4.210.0100.00616.58
7.4.200.0050.00316.43
7.4.190.0040.00416.40
7.4.160.0060.00916.57
7.4.150.0070.01117.40
7.4.140.0080.01217.86
7.4.130.0050.01316.51
7.4.120.0140.00316.61
7.4.110.0090.01216.42
7.4.100.0150.00816.55
7.4.90.0060.01916.42
7.4.80.0070.01419.39
7.4.70.0030.01216.55
7.4.60.0070.01016.32
7.4.50.0030.00516.54
7.4.40.0040.01122.77
7.4.30.0180.00316.35
7.4.00.0030.01315.23
7.3.330.0050.00013.07
7.3.320.0000.00613.05
7.3.310.0000.00716.34
7.3.300.0030.00316.30
7.3.290.0110.00316.36
7.3.280.0110.00816.32
7.3.270.0120.00617.40
7.3.260.0150.00816.32
7.3.250.0130.01016.34
7.3.240.0080.01116.28
7.3.230.0170.00016.40
7.3.210.0070.01316.57
7.3.200.0100.01419.39
7.3.190.0040.01216.54
7.3.180.0050.01616.46
7.3.170.0110.00516.52
7.3.160.0050.01116.35
7.3.120.0000.01714.75
7.2.330.0150.00316.60
7.2.320.0090.01216.54
7.2.310.0030.01416.52
7.2.300.0100.00616.69
7.2.290.0060.00916.75
7.2.80.0040.00816.75
7.2.60.0140.00017.05
7.2.00.0030.01519.55
7.1.200.0080.00415.61
7.1.100.0000.01318.11
7.1.70.0000.00917.26
7.1.60.0100.01419.32
7.1.50.0180.01834.98
7.1.00.0030.04722.48
7.0.200.0000.00816.75
7.0.140.0030.07022.00
7.0.60.0130.06319.96
7.0.50.0000.05717.71
7.0.40.0100.08320.08
7.0.30.0230.04020.01
7.0.20.0270.07720.00
7.0.10.0100.06720.33
7.0.00.0070.04020.04
5.6.280.0030.07321.09
5.6.210.0130.07020.66
5.6.200.0000.08718.18
5.6.190.0070.05320.43
5.6.180.0330.06320.45
5.6.170.0230.04020.49
5.6.160.0030.07020.54
5.6.150.0100.07718.17
5.6.140.0030.06318.12
5.6.130.0130.07718.14
5.6.120.0100.08020.98
5.6.110.0070.07720.99
5.6.100.0100.07720.95
5.6.90.0070.04021.12
5.6.80.0100.06320.41
5.5.350.0330.07020.32
5.5.340.0100.07017.96
5.5.330.0100.05720.36
5.5.320.0200.04020.20
5.5.310.0230.06020.50
5.5.300.0100.08017.92
5.5.290.0070.04018.00
5.5.280.0000.04720.87
5.5.270.0030.09020.85
5.5.260.0100.05720.86
5.5.250.0100.08720.57
5.5.240.0000.08320.23
5.4.450.0830.05719.55
5.4.440.0630.05019.58
5.4.430.0130.05019.42
5.4.420.0000.06319.47
5.4.410.0000.06718.70
5.4.400.0100.06018.50
5.4.390.0130.05718.53
5.4.380.0130.05718.84
5.4.370.0130.05318.78
5.4.360.0270.04018.63
5.4.350.0070.03412.02
5.4.340.0110.04612.01
5.4.320.0060.03612.50
5.4.310.0080.03412.49
5.4.300.0050.04012.50
5.4.290.0040.03912.49
5.4.280.0050.03512.39
5.4.270.0040.03712.39
5.4.260.0050.03812.39
5.4.250.0030.04212.39
5.4.240.0130.05018.96
5.4.230.0170.04718.84
5.4.220.0170.05318.80
5.4.210.0170.04318.96
5.4.200.0230.04719.00
5.4.190.0170.05018.90
5.4.180.0100.04718.77
5.4.170.0100.05018.99
5.4.160.0030.06018.89
5.4.150.0170.06318.66
5.4.140.0070.05316.43
5.4.130.0030.05716.40
5.4.120.0170.03716.25
5.4.110.0030.05316.48
5.4.100.0100.07016.62
5.4.90.0100.05016.32
5.4.80.0170.04016.45
5.4.70.0030.05016.59
5.4.60.0300.04016.41
5.4.50.0070.05016.49
5.4.40.0030.05316.53
5.4.30.0200.06016.43
5.4.20.0130.05016.48
5.4.10.0170.05016.55
5.4.00.0200.04315.83
5.3.290.0070.04212.80
5.3.280.0100.06714.60
5.3.270.0200.07714.53
5.3.260.0030.06014.62
5.3.250.0100.05314.63
5.3.240.0200.05014.48
5.3.230.0130.05714.62
5.3.220.0130.06314.45
5.3.210.0070.05314.57
5.3.200.0030.05314.58
5.3.190.0130.04314.71
5.3.180.0070.05014.48
5.3.170.0070.05014.26
5.3.160.0130.06014.45
5.3.150.0200.05014.43
5.3.140.0070.07314.55
5.3.130.0170.05714.32
5.3.120.0130.06014.25
5.3.110.0100.05714.43
5.3.100.0200.04014.05
5.3.90.0030.05713.88
5.3.80.0100.04713.88
5.3.70.0100.05014.04
5.3.60.0170.05714.15
5.3.50.0070.04713.96
5.3.40.0100.05013.95
5.3.30.0170.06313.82
5.3.20.0100.05013.46
5.3.10.0100.05713.67
5.3.00.0130.06013.41
5.2.170.0070.04011.05
5.2.160.0070.04011.02
5.2.150.0130.03711.07
5.2.140.0070.04011.14
5.2.130.0130.03311.21
5.2.120.0030.04011.11
5.2.110.0000.06011.19
5.2.100.0100.04311.25
5.2.90.0100.05011.19
5.2.80.0070.05011.02
5.2.70.0100.03711.01
5.2.60.0070.04010.97
5.2.50.0070.04311.02
5.2.40.0030.04010.91
5.2.30.0130.03311.01
5.2.20.0030.05010.96
5.2.10.0070.04310.62
5.2.00.0100.04010.80
5.1.60.0130.0379.92
5.1.50.0000.04010.23
5.1.40.0070.0339.91
5.1.30.0070.03710.10
5.1.20.0070.04710.19
5.1.10.0100.0309.98
5.1.00.0130.03710.00
5.0.50.0030.0278.61
5.0.40.0030.0278.33
5.0.30.0070.0408.18
5.0.20.0070.0338.18
5.0.10.0070.0278.40
5.0.00.0070.0438.24
4.4.90.0030.0207.39
4.4.80.0000.0277.39
4.4.70.0030.0237.39
4.4.60.0030.0237.39
4.4.50.0030.0237.39
4.4.40.0030.0407.39
4.4.30.0070.0237.39
4.4.20.0030.0277.39
4.4.10.0030.0337.39
4.4.00.0030.0337.39
4.3.110.0000.0337.39
4.3.100.0030.0307.39
4.3.90.0070.0177.39
4.3.80.0030.0337.39
4.3.70.0070.0277.39
4.3.60.0070.0177.39
4.3.50.0070.0207.39
4.3.40.0070.0307.39
4.3.30.0000.0237.39
4.3.20.0030.0207.39
4.3.10.0030.0237.39
4.3.00.0170.0206.53

preferences:
32.34 ms | 400 KiB | 5 Q