3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( array2cols(range('a', 'r'), 12) ); function array2cols($array,$n){ $groups = array(); for($i=0;$i<$n;$i++){ $groups[$i] = array(); } $col = 0; foreach($array as $row){ $groups[$col][] = $row; $col = ($col+1)%$n; } return $groups; }

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.0000.01518.56
8.3.50.0040.01116.33
8.3.40.0120.00618.84
8.3.30.0060.00918.67
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.180.0140.00725.92
8.2.170.0040.01118.91
8.2.160.0130.00322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0030.00621.08
8.2.100.0060.00618.03
8.2.90.0080.00017.75
8.2.80.0090.00018.77
8.2.70.0030.00517.63
8.2.60.0050.00317.75
8.2.50.0030.00518.05
8.2.40.0030.00617.93
8.2.30.0000.00718.13
8.2.20.0070.00018.13
8.2.10.0050.00219.27
8.2.00.0070.00019.23
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.80
8.1.230.0060.00619.67
8.1.220.0000.00818.55
8.1.210.0030.00618.77
8.1.200.0000.00917.36
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0030.00518.89
8.1.150.0000.00718.81
8.1.140.0000.00920.30
8.1.130.0000.00720.15
8.1.120.0080.00017.47
8.1.110.0040.00417.46
8.1.100.0000.00817.50
8.1.90.0040.00417.51
8.1.80.0080.00217.54
8.1.70.0000.00717.50
8.1.60.0090.00017.55
8.1.50.0040.00417.52
8.1.40.0040.00417.41
8.1.30.0080.00017.72
8.1.20.0040.00417.66
8.1.10.0080.00017.63
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00020.14
8.0.270.0000.00718.00
8.0.260.0000.00620.11
8.0.250.0020.00516.98
8.0.240.0030.00316.84
8.0.230.0000.00716.86
8.0.220.0060.00316.92
8.0.210.0030.00316.98
8.0.200.0000.00716.91
8.0.190.0050.00316.96
8.0.180.0050.00316.88
8.0.170.0040.00416.95
8.0.160.0030.00517.01
8.0.150.0040.00416.89
8.0.140.0000.00816.85
8.0.130.0030.00313.32
8.0.120.0040.00416.72
8.0.110.0000.00816.73
8.0.100.0000.00816.70
8.0.90.0000.00716.82
8.0.80.0090.00816.89
8.0.70.0040.00416.85
8.0.60.0040.00416.92
8.0.50.0040.00416.91
8.0.30.0040.01417.21
8.0.20.0100.00917.01
8.0.10.0000.00716.97
8.0.00.0040.01716.72
7.4.330.0000.00615.55
7.4.320.0060.00016.52
7.4.300.0030.00316.44
7.4.290.0030.00316.59
7.4.280.0040.00416.65
7.4.270.0000.00716.59
7.4.260.0000.00613.30
7.4.250.0000.00716.38
7.4.240.0030.00316.66
7.4.230.0040.00416.33
7.4.220.0020.00516.46
7.4.210.0070.00916.60
7.4.200.0000.00716.68
7.4.130.0070.01116.48
7.4.120.0140.00316.38
7.4.110.0160.00016.54
7.4.100.0150.00316.37
7.4.90.0030.01416.49
7.4.80.0100.01116.02
7.4.70.0060.01116.00
7.4.60.0090.00616.18
7.4.50.0060.01216.29
7.4.40.0060.01016.54
7.4.30.0140.00316.56
7.4.20.0080.00916.46
7.4.10.0120.00616.04
7.4.00.0140.00416.54
7.3.330.0000.00716.22
7.3.320.0000.00513.29
7.3.310.0040.00416.46
7.3.300.0000.00816.37
7.3.290.0110.00516.34
7.3.280.0190.00316.30
7.3.260.0120.00616.31
7.3.230.0030.01416.43
7.3.210.0110.00716.31
7.3.200.0110.00616.05
7.3.190.0030.01316.38
7.3.180.0110.00716.16
7.3.170.0040.01216.66
7.3.160.0140.00316.63
7.3.150.0110.00516.46
7.3.140.0070.01416.29
7.3.130.0090.01216.28
7.3.120.0100.00716.41
7.3.110.0170.00316.30
7.3.100.0120.01216.54
7.3.90.0130.01016.49
7.3.80.0090.00916.48
7.3.70.0100.01316.46
7.3.60.0070.01016.27
7.3.50.0030.01416.35
7.3.40.0130.00316.27
7.3.30.0120.00616.37
7.3.20.0120.00916.45
7.3.10.0060.01216.46
7.3.00.0190.00016.45
7.2.330.0060.01216.63
7.2.320.0070.01016.33
7.2.310.0090.00916.64
7.2.300.0150.00316.44
7.2.290.0070.01016.55
7.2.280.0070.01016.65
7.2.270.0110.00616.78
7.2.260.0100.00716.47
7.2.250.0140.01016.61
7.2.240.0110.00816.68
7.2.230.0100.01416.39
7.2.220.0120.01216.67
7.2.210.0140.01016.46
7.2.200.0140.01016.71
7.2.190.0140.00316.66
7.2.180.0140.00416.42
7.2.170.0080.01116.54
7.2.160.0060.01316.41
7.2.150.0140.00716.76
7.2.140.0060.01216.84
7.2.130.0090.01316.78
7.2.120.0140.00716.68
7.2.110.0040.01516.70
7.2.100.0180.00916.87
7.2.90.0190.00616.56
7.2.80.0090.00916.58
7.2.70.0600.01416.77
7.2.60.0150.00416.41
7.2.50.0060.01516.50
7.2.40.0070.01216.54
7.2.30.0090.01016.49
7.2.20.0120.00616.32
7.2.10.0120.00816.43
7.2.00.0090.00916.55

preferences:
58.22 ms | 400 KiB | 5 Q