3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArrays = array( array(1, 2, 3, 4), array(5, 6, 7, 8), array(9, 10, 11, 12), array(13, 14, 15, 16) ); foreach ($myArrays as $index => $myArray) { if (($index % 2) != 0) { echo implode("\n", array_reverse(array_column($myArrays, $index))) . "\n"; } else { echo implode("\n", array_column($myArrays, $index)) . "\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.4.120.0110.00825.68
8.4.110.0100.01018.61
8.4.100.0110.01218.78
8.4.90.0160.00320.58
8.4.80.0040.00420.56
8.4.70.0100.01017.88
8.4.60.0060.00318.90
8.4.50.0130.00720.50
8.4.40.0110.00819.57
8.4.30.0130.00620.63
8.4.20.0120.00917.63
8.4.10.0130.00319.42
8.3.250.0110.00818.82
8.3.240.0080.01117.05
8.3.230.0120.00716.56
8.3.220.0030.00519.05
8.3.210.0040.00416.64
8.3.200.0030.00616.40
8.3.190.0100.00917.18
8.3.180.0110.00818.61
8.3.170.0050.00217.09
8.3.160.0070.01117.18
8.3.150.0080.00020.81
8.3.140.0110.00717.13
8.3.130.0050.00516.69
8.3.120.0060.00320.89
8.3.110.0030.00620.94
8.3.100.0070.01424.06
8.3.90.0100.00026.77
8.3.80.0060.00319.36
8.3.70.0090.00618.18
8.3.60.0070.01116.50
8.3.50.0070.01121.20
8.3.40.0060.00918.60
8.3.30.0110.00318.72
8.3.20.0030.01020.30
8.3.10.0050.00320.24
8.3.00.0080.00021.91
8.2.290.0060.00220.37
8.2.280.0030.00518.32
8.2.270.0110.00717.26
8.2.260.0040.01118.38
8.2.250.0000.00818.22
8.2.240.0150.00417.09
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0070.00318.88
8.2.190.0110.00716.58
8.2.180.0070.00716.75
8.2.170.0110.00322.96
8.2.160.0070.00720.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0040.00426.35
8.2.110.0030.00621.18
8.2.100.0040.00817.91
8.2.90.0030.00720.42
8.2.80.0000.00820.48
8.2.70.0030.00517.38
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00420.46
8.2.30.0020.00519.26
8.2.20.0000.00818.07
8.2.10.0040.00418.16
8.2.00.0040.00318.34
8.1.330.0070.00322.01
8.1.320.0160.00417.86
8.1.310.0040.01118.07
8.1.300.0070.01019.63
8.1.290.0090.00030.84
8.1.280.0030.01425.92
8.1.270.0090.00623.99
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0040.00422.24
8.1.230.0060.00620.84
8.1.220.0040.00417.79
8.1.210.0080.00019.03
8.1.200.0060.00317.35
8.1.190.0040.00817.13
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0040.00418.95
8.1.150.0040.00420.26
8.1.140.0000.00719.48
8.1.130.0030.00320.71
8.1.120.0000.00817.42
8.1.110.0000.00817.40
8.1.100.0000.00717.40
8.1.90.0000.00717.49
8.1.80.0030.00517.47
8.1.70.0000.00817.40
8.1.60.0040.00417.47
8.1.50.0040.00417.50
8.1.40.0030.00617.55
8.1.30.0000.00717.49
8.1.20.0000.00717.70
8.1.10.0020.00517.39
8.1.00.0050.00317.45
8.0.300.0040.00420.10
8.0.290.0000.00716.63
8.0.280.0040.00418.45
8.0.270.0030.00317.21
8.0.260.0060.00017.20
8.0.250.0030.00316.98
8.0.240.0060.00316.92
8.0.230.0030.00416.85
8.0.220.0040.00416.86
8.0.210.0030.00316.77
8.0.200.0000.00716.96
8.0.190.0060.00316.99
8.0.180.0030.00616.77
8.0.170.0000.00716.95
8.0.160.0020.00516.81
8.0.150.0040.00416.89
8.0.140.0080.00016.84
8.0.130.0030.00613.33
8.0.120.0070.00016.73
8.0.110.0000.00716.95
8.0.100.0050.00316.93
8.0.90.0040.00416.93
8.0.80.0030.01216.80
8.0.70.0000.00716.84
8.0.60.0000.00716.87
8.0.50.0000.00716.93
8.0.30.0110.00817.02
8.0.20.0120.00717.40
8.0.10.0000.00716.95
8.0.00.0140.00416.89
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0030.00316.45
7.4.290.0000.00716.60
7.4.280.0000.00716.48
7.4.270.0050.00216.62
7.4.260.0030.00516.48
7.4.250.0040.00416.57
7.4.240.0080.00016.61
7.4.230.0000.00716.44
7.4.220.0160.00916.58
7.4.210.0030.01216.40
7.4.200.0000.00816.50
7.4.160.0070.01116.36
7.4.150.0110.00717.40
7.4.140.0080.01317.86
7.4.130.0080.01216.55
7.4.120.0080.01116.48
7.4.110.0120.00416.53
7.4.100.0100.00716.46
7.4.90.0090.00916.64
7.4.80.0120.00619.39
7.4.70.0140.00316.55
7.4.60.0100.00616.46
7.4.50.0050.00716.37
7.4.40.0060.01216.37
7.4.30.0180.00016.46
7.4.00.0070.01114.82
7.3.330.0000.00513.29
7.3.320.0050.00013.00
7.3.310.0000.00716.36
7.3.300.0030.00316.12
7.3.290.0070.00616.30
7.3.280.0090.01016.24
7.3.270.0070.01017.40
7.3.260.0150.00616.60
7.3.250.0110.00616.40
7.3.240.0100.00716.49
7.3.230.0110.00516.39
7.3.210.0090.01216.27
7.3.200.0140.00416.25
7.3.190.0090.00916.55
7.3.180.0060.01516.57
7.3.170.0060.00916.57
7.3.160.0110.01116.30
7.3.120.0070.01114.86
7.3.110.0090.00715.01
7.3.100.0070.00815.00
7.3.90.0080.00614.85
7.3.80.0040.01114.83
7.3.70.0040.01014.72
7.3.60.0040.00914.82
7.3.50.0070.00714.72
7.3.40.0070.00814.84
7.3.30.0040.00914.89
7.3.20.0060.00916.55
7.3.10.0040.00916.53
7.3.00.0080.00616.79
7.2.330.0120.00616.45
7.2.320.0120.00616.34
7.2.310.0100.01016.59
7.2.300.0030.01616.30
7.2.290.0150.00416.41
7.2.250.0060.01215.25
7.2.240.0070.01014.93
7.2.230.0050.01114.92
7.2.220.0030.01114.96
7.2.210.0090.00215.13
7.2.200.0090.00714.97
7.2.190.0060.00514.82
7.2.180.0060.01015.02
7.2.170.0070.00814.98
7.2.160.0050.01014.95
7.2.150.0030.01116.86
7.2.140.0090.00516.87
7.2.130.0040.00716.93
7.2.120.0050.00916.91
7.2.110.0050.00816.77
7.2.100.0080.00516.85
7.2.90.0000.01116.97
7.2.80.0060.00717.00
7.2.70.0060.00916.98
7.2.60.0150.00717.00
7.2.50.0030.00916.91
7.2.40.0030.01016.96
7.2.30.0060.00816.84
7.2.20.0040.00916.82
7.2.10.0060.00816.88
7.2.00.0070.00716.99
7.1.330.0060.01015.86
7.1.320.0050.00815.74
7.1.310.0050.00815.72
7.1.300.0060.00615.59
7.1.290.0070.00715.66
7.1.280.0060.00715.65
7.1.270.0100.00315.61
7.1.260.0070.00515.75
7.1.250.0080.00315.87
7.1.200.0070.00715.57
7.1.70.0000.00816.86
7.1.60.0070.00717.18
7.1.30.5870.06036.43
7.1.20.5030.04736.51
7.1.10.5570.06020.38
7.1.00.3970.06320.54
7.0.200.0060.01016.61
7.0.170.6570.05720.00
7.0.160.3600.07720.09
7.0.150.5470.08020.07
7.0.140.3600.06320.07
7.0.130.4400.05720.05
7.0.120.4500.06019.96
7.0.110.4300.06319.95
7.0.100.5670.07719.99
7.0.90.0170.06719.99
7.0.80.0170.07320.03
7.0.70.5770.05020.07
7.0.60.0100.06320.07
7.0.50.0100.06020.18
7.0.40.6200.06320.19
7.0.30.6030.06320.13
7.0.20.0200.07320.11
7.0.10.7300.06320.26
7.0.00.0130.05720.17

preferences:
29.6 ms | 403 KiB | 5 Q