3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range('a', 'g'); $n = 2; var_export( array_map(fn($chunk) => array_pad($chunk, $n, null), array_chunk($array, $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.5.30.0080.01019.69
8.5.20.0130.00420.23
8.5.10.0100.00716.65
8.5.00.0140.00719.96
8.4.180.0150.00819.45
8.4.170.0130.00921.92
8.4.160.0120.00922.10
8.4.150.0080.00516.85
8.4.140.0100.01317.72
8.4.130.0130.00717.60
8.4.120.0100.00824.25
8.4.110.0090.00422.61
8.4.100.0130.00818.80
8.4.90.0120.00818.98
8.4.80.0090.00818.62
8.4.70.0030.00518.20
8.4.60.0060.00418.84
8.4.50.0170.00420.13
8.4.40.0000.00817.82
8.4.30.0100.01020.54
8.4.20.0070.01419.38
8.4.10.0090.00619.70
8.3.300.0090.01318.30
8.3.290.0110.00820.72
8.3.280.0120.00818.36
8.3.270.0110.01016.47
8.3.260.0140.00416.97
8.3.250.0090.01018.72
8.3.240.0110.00917.07
8.3.230.0110.00916.74
8.3.220.0100.00918.95
8.3.210.0140.00716.74
8.3.200.0110.00816.66
8.3.190.0100.00717.16
8.3.180.0060.01218.73
8.3.170.0040.00417.05
8.3.160.0040.01518.26
8.3.150.0110.00716.93
8.3.140.0060.00316.62
8.3.130.0230.00016.43
8.3.120.0210.00016.46
8.3.110.0180.00016.27
8.3.100.0130.00816.46
8.3.90.0180.00416.53
8.3.80.0160.00516.41
8.3.70.0140.01016.59
8.3.60.0210.00416.50
8.3.50.0150.00616.62
8.3.40.0140.00617.20
8.3.30.0200.00017.21
8.3.20.0180.00017.11
8.3.10.0140.00517.29
8.3.00.0040.00717.47
8.2.300.0130.00622.07
8.2.290.0080.01120.18
8.2.280.0100.01016.61
8.2.270.0120.00616.69
8.2.260.0070.00717.09
8.2.250.0060.00316.73
8.2.240.0130.01016.25
8.2.230.0150.00416.21
8.2.220.0150.00416.45
8.2.210.0140.00616.11
8.2.200.0160.00316.32
8.2.190.0120.00616.55
8.2.180.0160.00316.41
8.2.170.0240.00017.53
8.2.160.0220.00317.31
8.2.150.0190.00317.29
8.2.140.0150.00417.08
8.2.130.0150.00517.06
8.2.120.0170.00317.38
8.2.110.0150.00417.59
8.2.100.0190.00317.07
8.2.90.0150.00817.51
8.2.80.0150.00817.23
8.2.70.0180.00017.20
8.2.60.0200.00017.16
8.2.50.0210.00016.90
8.2.40.0150.00417.33
8.2.30.0080.01217.43
8.2.20.0160.00317.13
8.2.10.0160.00017.44
8.2.00.0170.00017.09
8.1.340.0130.00819.68
8.1.330.0110.00721.93
8.1.320.0100.00916.06
8.1.310.0110.00416.57
8.1.300.0140.00416.05
8.1.290.0120.00616.05
8.1.280.0070.01016.09
8.1.270.0160.00517.20
8.1.260.0120.00917.06
8.1.250.0140.00417.32
8.1.240.0140.00316.99
8.1.230.0130.00717.43
8.1.220.0130.00317.32
8.1.210.0080.00817.34
8.1.200.0110.00616.95
8.1.190.0130.00317.27
8.1.180.0170.00017.23
8.1.170.0080.00817.10
8.1.160.0110.00617.05
8.1.150.0080.00817.17
8.1.140.0140.00416.74
8.1.130.0200.00017.22
8.1.120.0090.00917.17
8.1.110.0100.00717.22
8.1.100.0110.00616.75
8.1.90.0240.00016.96
8.1.80.0160.00017.15
8.1.70.0180.00017.09
8.1.60.0170.00017.33
8.1.50.0150.00517.24
8.1.40.0160.00317.18
8.1.30.0150.00616.92
8.1.20.0130.00417.16
8.1.10.0200.00017.01
8.1.00.0140.00616.79

preferences:
44.18 ms | 1002 KiB | 5 Q