3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = range('a', 'g'); $size = 7; var_dump( array_chunk( array_merge($arr,array_fill(0, $size-(count($arr)%$size), null)), $size) );

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.0130.00519.56
8.5.20.0080.00920.38
8.5.10.0120.00716.63
8.5.00.0150.00619.90
8.4.180.0140.00821.49
8.4.170.0130.00823.88
8.4.160.0140.00923.65
8.4.150.0080.00516.81
8.4.140.0160.01317.54
8.4.130.0120.01017.87
8.4.120.0110.00720.62
8.4.110.0110.00918.63
8.4.100.0120.00817.66
8.4.90.0050.00420.49
8.4.80.0120.00820.70
8.4.70.0110.00819.06
8.4.60.0070.00920.53
8.4.50.0140.00718.55
8.4.40.0130.00717.76
8.4.30.0150.00420.41
8.4.20.0110.01121.30
8.4.10.0030.00619.36
8.3.300.0150.00620.78
8.3.290.0100.01020.69
8.3.280.0080.00316.16
8.3.270.0120.00716.75
8.3.260.0110.00716.62
8.3.250.0110.00819.05
8.3.240.0130.00518.93
8.3.230.0030.00516.73
8.3.220.0110.00318.97
8.3.210.0060.00216.52
8.3.200.0050.00416.68
8.3.190.0100.00817.02
8.3.180.0100.00918.85
8.3.170.0060.00316.90
8.3.160.0140.00318.85
8.3.150.0060.01217.24
8.3.140.0150.00316.29
8.3.130.0230.00416.39
8.3.120.0200.00916.49
8.3.110.0380.00816.18
8.3.100.0360.01116.45
8.3.90.0400.00316.47
8.3.80.0340.00316.42
8.3.70.0130.01316.48
8.3.60.0170.00516.33
8.3.50.0200.00316.74
8.3.40.0170.00217.58
8.3.30.0310.00017.35
8.3.20.0370.00317.40
8.3.10.0240.01317.21
8.3.00.0090.01319.20
8.2.300.0130.01222.17
8.2.290.0130.00717.28
8.2.280.0100.00620.09
8.2.270.0160.00616.62
8.2.260.0040.00416.88
8.2.250.0260.01316.55
8.2.240.0290.01016.73
8.2.230.0280.01216.46
8.2.220.0330.00316.51
8.2.210.0390.00416.38
8.2.200.0280.01216.52
8.2.190.0320.00616.18
8.2.180.0280.01116.21
8.2.170.0360.01017.61
8.2.160.0410.01217.34
8.2.150.0340.01017.46
8.2.140.0360.01017.50
8.2.130.0320.01117.37
8.2.120.0290.01417.45
8.2.110.0370.00917.52
8.2.100.0370.00317.26
8.2.90.0410.00317.48
8.2.80.0380.00317.44
8.2.70.0370.00417.25
8.2.60.0350.00917.50
8.2.50.0320.00617.45
8.2.40.0150.01517.61
8.2.30.0240.01417.30
8.2.20.0340.00317.36
8.2.10.0330.00717.57
8.2.00.0370.00917.21
8.1.340.0110.00919.54
8.1.330.0140.00416.36
8.1.320.0110.00916.34
8.1.310.0030.00616.80
8.1.300.0330.00816.18
8.1.290.0300.01116.18
8.1.280.0340.00616.29
8.1.270.0390.00317.07
8.1.260.0320.00317.18
8.1.250.0300.01317.13
8.1.240.0340.00417.34
8.1.230.0370.00417.04
8.1.220.0210.00917.32
8.1.210.0290.00616.93
8.1.200.0310.00917.10
8.1.190.0260.01317.33
8.1.180.0240.01417.15
8.1.170.0280.00917.28
8.1.160.0240.01217.30
8.1.150.0270.01017.25
8.1.140.0320.00617.05
8.1.130.0350.00417.21
8.1.120.0280.00916.98
8.1.110.0290.00717.19
8.1.100.0280.00817.18
8.1.90.0130.00417.30
8.1.80.0290.00617.11
8.1.70.0290.00917.05
8.1.60.0240.00917.13
8.1.50.0360.00717.41
8.1.40.0320.00317.39
8.1.30.0410.00016.94
8.1.20.0370.00417.50
8.1.10.0270.00617.11
8.1.00.0320.01117.09

preferences:
67.48 ms | 1023 KiB | 5 Q