3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [1, 2], [3, 4], ]; foreach ($array as list($a, $b)) { // $a contains the first element of the nested array, // and $b contains the second element. echo "A: $a; B: $b\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.0120.00918.55
8.3.50.0110.00921.98
8.3.40.0110.00418.67
8.3.30.0110.00320.17
8.3.20.0020.00520.29
8.3.10.0000.00721.96
8.3.00.0000.00722.50
8.2.180.0090.00616.63
8.2.170.0040.01122.96
8.2.160.0090.00622.27
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0030.00622.11
8.2.100.0080.00318.03
8.2.90.0000.00819.41
8.2.80.0030.00619.39
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0000.00818.07
8.2.40.0020.00518.16
8.2.30.0040.00418.00
8.2.20.0000.00717.71
8.2.10.0050.00317.74
8.2.00.0000.01017.71
8.1.280.0110.00425.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00023.79
8.1.230.0000.01118.97
8.1.220.0080.00017.78
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.51
8.1.180.0080.00418.10
8.1.170.0030.00618.63
8.1.160.0040.00418.84
8.1.150.0040.00418.63
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0040.00317.54
8.1.110.0030.00517.51
8.1.100.0040.00417.45
8.1.90.0030.00317.47
8.1.80.0000.00717.46
8.1.70.0040.00417.43
8.1.60.0000.00717.67
8.1.50.0040.00417.54
8.1.40.0040.00417.53
8.1.30.0040.00417.60
8.1.20.0040.00417.68
8.1.10.0040.00417.41
8.1.00.0030.01017.52
8.0.300.0070.00018.77
8.0.290.0000.00717.18
8.0.280.0000.00718.48
8.0.270.0000.00717.21
8.0.260.0000.00616.82
8.0.250.0050.00216.91
8.0.240.0050.00316.96
8.0.230.0030.00316.94
8.0.220.0000.00716.83
8.0.210.0070.00016.93
8.0.200.0070.00016.84
8.0.190.0040.00416.88
8.0.180.0070.00016.93
8.0.170.0040.00416.82
8.0.160.0000.00816.84
8.0.150.0070.00016.79
8.0.140.0020.00516.76
8.0.130.0030.00313.24
8.0.120.0070.00016.80
8.0.110.0040.00416.86
8.0.100.0030.00516.75
8.0.90.0000.00716.76
8.0.80.0060.00916.94
8.0.70.0030.00316.96
8.0.60.0070.00016.85
8.0.50.0040.00416.87
8.0.30.0100.00816.99
8.0.20.0100.00817.40
8.0.10.0040.00417.02
8.0.00.0020.01716.85
7.4.330.0000.00715.00
7.4.320.0060.00016.64
7.4.300.0040.00416.61
7.4.290.0000.00716.57
7.4.280.0000.00716.50
7.4.270.0000.00616.58
7.4.260.0000.00513.27
7.4.250.0040.00416.38
7.4.240.0020.00516.46
7.4.230.0060.00016.63
7.4.220.0070.01516.70
7.4.210.0090.00716.53
7.4.200.0000.00716.48
7.4.190.0000.00716.66
7.4.160.0140.00616.65
7.4.150.0130.00517.40
7.4.140.0110.00917.86
7.4.130.0140.00516.59
7.4.120.0130.00516.52
7.4.110.0100.00716.64
7.4.100.0070.01416.33
7.4.90.0070.01016.53
7.4.80.0190.00219.39
7.4.70.0080.00816.65
7.4.60.0040.01416.49
7.4.50.0080.00016.60
7.4.40.0070.00722.77
7.4.30.0100.00616.59
7.4.00.0050.01014.76
7.3.330.0050.00013.08
7.3.320.0000.00513.06
7.3.310.0030.00316.33
7.3.300.0000.00716.31
7.3.290.0090.01016.35
7.3.280.0060.00816.35
7.3.270.0100.00617.40
7.3.260.0070.01016.27
7.3.250.0120.00716.39
7.3.240.0140.00916.36
7.3.230.0100.01016.63
7.3.210.0070.01016.41
7.3.200.0110.01119.39
7.3.190.0090.01216.78
7.3.180.0090.00616.26
7.3.170.0030.01316.36
7.3.160.0100.00616.35
7.3.120.0060.01015.01
7.3.110.0060.00914.75
7.3.100.0100.00314.79
7.3.90.0030.01014.87
7.3.80.0060.00614.78
7.3.70.0000.01514.78
7.3.60.0030.01014.69
7.3.50.0030.00914.83
7.3.40.0060.00614.82
7.3.30.0030.00714.41
7.3.20.0100.00316.59
7.3.10.0050.00716.68
7.3.00.0070.00616.65
7.2.330.0140.00316.57
7.2.320.0120.00916.61
7.2.310.0120.00916.78
7.2.300.0140.00616.60
7.2.290.0160.00016.55
7.2.250.0100.00714.86
7.2.240.0090.00914.97
7.2.230.0030.00915.17
7.2.220.0060.00615.18
7.2.210.0000.00814.95
7.2.200.0060.00914.83
7.2.190.0000.01415.09
7.2.180.0000.01114.97
7.2.170.0110.00715.04
7.2.130.0120.00416.79
7.2.120.0120.00516.89
7.2.110.0200.00616.17
7.2.100.0110.00516.12
7.2.90.0090.00816.14
7.2.80.0120.00916.29
7.2.70.0400.00716.22
7.2.60.0470.00616.25
7.2.50.0340.00916.27
7.2.40.0060.00816.23
7.2.30.0740.00816.35
7.2.20.0210.00616.14
7.2.10.0090.00816.30
7.2.00.0100.00717.08
7.1.330.0000.01115.67
7.1.320.0030.01015.95
7.1.310.0060.00315.81
7.1.300.0050.00315.93
7.1.290.0000.01315.74
7.1.280.0040.01215.90
7.1.270.0090.00315.79
7.1.260.0080.00015.78
7.1.250.0050.00815.90
7.1.240.0090.00615.84
7.1.230.0610.00514.66
7.1.220.0130.00714.62
7.1.210.0640.00414.92
7.1.200.0800.00814.66
7.1.190.0710.00914.77
7.1.180.0580.00214.76
7.1.170.0510.00514.64
7.1.160.0110.00814.60
7.1.150.0340.00314.81
7.1.140.0560.00514.83
7.1.130.0240.00314.71
7.1.120.0260.01214.64
7.1.110.0070.00914.83
7.1.100.0520.00615.82
7.1.90.0230.00114.91
7.1.80.0450.00614.87
7.1.70.0130.00315.69
7.1.60.0350.01022.42
7.1.50.0350.01221.40
7.1.40.0480.01023.83
7.1.30.0240.01223.72
7.1.20.0570.00523.79
7.1.10.0610.00514.99
7.1.00.0260.02917.29
7.0.330.0140.00315.31
7.0.320.0070.00715.24
7.0.310.0770.01214.24
7.0.300.0650.00514.37
7.0.290.0320.00714.37
7.0.280.0660.00214.32
7.0.270.0440.00814.37
7.0.260.0130.00514.39
7.0.250.0380.00514.38
7.0.240.0450.00814.43
7.0.230.0080.00714.57
7.0.220.0140.00714.27
7.0.210.0080.00814.41
7.0.200.0050.00715.28
7.0.190.0450.00614.45
7.0.180.0580.00714.15
7.0.170.0490.01314.57
7.0.160.0500.00314.57
7.0.150.0160.00714.47
7.0.140.0350.02917.04
7.0.130.0460.00514.37
7.0.120.0390.00714.22
7.0.110.0540.00214.47
7.0.100.0160.02616.21
7.0.90.0220.02816.32
7.0.80.0390.03116.29
7.0.70.0420.02216.25
7.0.60.0440.02616.32
7.0.50.0160.03116.34
7.0.40.0260.03015.78
7.0.30.0250.02815.68
7.0.20.0220.02515.65
7.0.10.0240.02515.70
7.0.00.0270.03415.56
5.6.380.0060.01014.37
5.6.370.0120.00514.10
5.6.360.0040.01214.47
5.6.350.0060.00914.44
5.6.340.0050.00714.52
5.6.330.0070.00714.52
5.6.320.0100.00614.18
5.6.310.0080.00414.24
5.6.300.0110.00314.52
5.6.290.0050.00414.37
5.6.280.0060.02716.51
5.6.270.0090.00514.37
5.6.260.0080.00314.44
5.6.250.0070.02916.38
5.6.240.0050.02216.45
5.6.230.0070.02916.47
5.6.220.0040.03216.25
5.6.210.0100.02716.42
5.6.200.0050.03316.65
5.6.190.0070.03016.61
5.6.180.0080.03216.41
5.6.170.0110.02916.58
5.6.160.0070.03316.43
5.6.150.0150.02216.70
5.6.140.0070.02216.46
5.6.130.0090.03216.57
5.6.120.0090.03316.47
5.6.110.0090.03616.69
5.6.100.0080.03116.54
5.6.90.0140.03316.57
5.6.80.0080.02916.25
5.6.70.0110.03116.43
5.6.60.0090.03416.34
5.6.50.0080.03316.35
5.6.40.0060.03416.21
5.6.30.0100.02816.21
5.6.20.0100.03016.30
5.6.10.0160.02716.15
5.6.00.0090.02516.24
5.5.380.0040.02414.20
5.5.370.0060.03214.25
5.5.360.0040.03214.15
5.5.350.0020.03414.32
5.5.340.0050.03014.30
5.5.330.0030.03414.36
5.5.320.0090.02714.22
5.5.310.0080.02614.36
5.5.300.0040.03114.38
5.5.290.0070.02914.34
5.5.280.0090.03014.42
5.5.270.0110.02714.41
5.5.260.0080.02914.38
5.5.250.0090.03214.36
5.5.240.0080.03113.98
5.5.230.0070.03014.04
5.5.220.0060.01514.13
5.5.210.0040.03214.11
5.5.200.0090.02913.99
5.5.190.0090.02314.03
5.5.180.0090.02214.14
5.5.170.0080.00612.67
5.5.160.0080.03214.20
5.5.150.0040.03014.21
5.5.140.0090.02514.18
5.5.130.0040.01914.16
5.5.120.0100.01314.09
5.5.110.0060.01914.17
5.5.100.0060.02314.17
5.5.90.0100.02714.12
5.5.80.0060.03114.07
5.5.70.0100.02714.17
5.5.60.0090.03014.03
5.5.50.0050.02214.08
5.5.40.0030.03214.09
5.5.30.0050.03214.05
5.5.20.0040.03314.12
5.5.10.0100.02814.03
5.5.00.0040.03314.09
5.4.450.0070.03213.86
5.4.440.0040.02213.86
5.4.430.0060.03313.74
5.4.420.0070.03213.71
5.4.410.0070.02113.76
5.4.400.0060.02813.71
5.4.390.0080.02313.53
5.4.380.0060.01713.62
5.4.370.0070.03013.62
5.4.360.0110.02613.64
5.4.350.0110.02713.63
5.4.340.0060.01713.76
5.4.330.0070.00710.92
5.4.320.0060.03113.71
5.4.310.0100.02413.69
5.4.300.0040.02513.74
5.4.290.0110.02613.59
5.4.280.0060.02213.54
5.4.270.0080.01813.66
5.4.260.0090.02413.66
5.4.250.0170.02613.72
5.4.240.0080.02113.68
5.4.230.0080.02713.65
5.4.220.0030.03113.68
5.4.210.0080.02713.64
5.4.200.0050.02113.75
5.4.190.0060.03113.54
5.4.180.0040.03213.75
5.4.170.0070.03013.72
5.4.160.0080.02613.60
5.4.150.0110.02013.71
5.4.140.0070.02912.84
5.4.130.0070.02712.74
5.4.120.0070.02212.81
5.4.110.0060.02612.90
5.4.100.0100.02212.72
5.4.90.0110.02812.77
5.4.80.0090.02412.76
5.4.70.0070.02512.82
5.4.60.0060.02712.79
5.4.50.0070.01912.79
5.4.40.0110.02312.80
5.4.30.0070.02612.83
5.4.20.0040.02012.82
5.4.10.0070.02612.79
5.4.00.0040.02812.59
5.3.290.0070.02812.02
5.3.280.0060.03011.96
5.3.270.0090.02511.99
5.3.260.0050.02111.91
5.3.250.0100.02311.90
5.3.240.0070.02511.90
5.3.230.0100.02711.93
5.3.220.0020.03311.97
5.3.210.0050.03111.98
5.3.200.0120.02411.96
5.3.190.0070.03011.97
5.3.180.0080.02712.04
5.3.170.0110.02411.92
5.3.160.0060.02811.94
5.3.150.0070.02411.92
5.3.140.0080.02611.92
5.3.130.0040.02212.00
5.3.120.0060.02811.92
5.3.110.0080.02811.97
5.3.100.0050.02911.75
5.3.90.0080.02711.80
5.3.80.0070.02811.77
5.3.70.0050.03011.63
5.3.60.0060.02711.79
5.3.50.0030.01911.72
5.3.40.0060.01911.63
5.3.30.0080.01811.72
5.3.20.0070.02611.63
5.3.10.0070.01711.57
5.3.00.0040.02611.58
5.2.170.0020.02210.80
5.2.160.0070.01110.80
5.2.150.0060.02310.80
5.2.140.0070.02110.80
5.2.130.0080.01110.80
5.2.120.0040.02310.80
5.2.110.0040.02410.80
5.2.100.0020.02710.80
5.2.90.0050.02110.80
5.2.80.0040.02110.80
5.2.70.0070.02010.80
5.2.60.0060.02010.80
5.2.50.0030.02110.80
5.2.40.0010.02610.80
5.2.30.0060.02110.80
5.2.20.0070.01910.80
5.2.10.0070.01910.80
5.2.00.0030.02210.80
5.1.60.0010.02210.80
5.1.50.0040.01710.80
5.1.40.0030.02110.80
5.1.30.0030.02610.80
5.1.20.0050.00910.80
5.1.10.0030.02110.80
5.1.00.0060.00910.80
5.0.50.0050.01610.80
5.0.40.0050.01410.80
5.0.30.0040.02410.80
5.0.20.0030.01510.80
5.0.10.0050.01510.80
5.0.00.0010.02510.80
4.4.90.0040.01110.80
4.4.80.0030.01410.80
4.4.70.0040.01110.80
4.4.60.0030.00710.80
4.4.50.0030.01410.80
4.4.40.0020.01910.80
4.4.30.0040.01210.80
4.4.20.0020.01310.80
4.4.10.0030.01310.80
4.4.00.0030.02010.80
4.3.110.0040.01210.80
4.3.100.0000.01510.80
4.3.90.0030.01110.80
4.3.80.0030.01910.80
4.3.70.0020.01310.80
4.3.60.0010.01310.80
4.3.50.0040.01110.80
4.3.40.0050.01710.80
4.3.30.0020.01210.80
4.3.20.0000.01510.80
4.3.10.0010.01410.80
4.3.00.0030.01210.80

preferences:
50.3 ms | 401 KiB | 5 Q