3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["greeting", "hello", "question", "how-are-you", "response", "im-fine"]; foreach (array_chunk($array, 2) as [$key, $result[$key]]); var_export($result);

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.0120.00521.24
8.5.20.0100.00820.23
8.5.10.0050.00416.75
8.5.00.0120.01119.74
8.4.180.0140.01119.70
8.4.170.0130.00823.84
8.4.160.0120.00922.06
8.4.150.0080.00416.85
8.4.140.0070.00217.50
8.4.130.0110.00917.72
8.4.120.0040.00520.69
8.4.110.0050.00622.40
8.4.100.0070.00417.67
8.4.90.0100.01017.92
8.4.80.0030.00617.85
8.4.70.0120.00817.73
8.4.60.0050.00320.30
8.4.50.0080.00917.55
8.4.40.0160.00319.37
8.4.30.0030.01318.45
8.4.20.0060.01319.39
8.4.10.0130.00619.52
8.3.300.0130.00819.11
8.3.290.0130.00920.75
8.3.280.0120.01418.37
8.3.270.0100.00916.54
8.3.260.0120.00616.50
8.3.250.0150.00418.54
8.3.240.0090.01016.34
8.3.230.0050.00316.73
8.3.220.0040.00418.85
8.3.210.0110.00416.63
8.3.200.0080.00316.49
8.3.190.0110.00918.59
8.3.180.0090.01018.26
8.3.170.0090.00918.90
8.3.160.0120.00616.66
8.3.150.0060.01218.85
8.3.140.0110.00417.19
8.3.130.0110.00318.47
8.3.120.0060.00320.55
8.3.110.0040.00418.59
8.3.100.0000.00818.30
8.3.90.0370.01026.77
8.3.80.0460.00326.77
8.3.70.0370.01426.77
8.3.60.0360.01526.77
8.3.50.0390.00926.77
8.3.40.0210.01126.77
8.3.30.0160.01026.77
8.3.20.0130.00426.77
8.3.10.0170.00726.77
8.3.00.0180.00026.77
8.2.300.0120.01018.11
8.2.290.0130.00520.56
8.2.280.0100.00819.99
8.2.270.0110.00719.10
8.2.260.0070.00018.34
8.2.250.0070.01116.70
8.2.240.0150.00318.82
8.2.230.0080.00020.94
8.2.220.0000.00924.06
8.2.210.0180.00526.77
8.2.200.0280.01026.77
8.2.190.0370.00926.77
8.2.180.0370.00926.77
8.2.170.0460.00426.77
8.2.160.0290.01026.77
8.2.150.0360.01426.77
8.2.140.0370.00026.77
8.2.130.0380.00426.77
8.2.120.0380.00626.77
8.2.110.0290.01326.77
8.2.100.0410.00326.77
8.2.90.0370.00626.77
8.2.80.0400.00326.77
8.2.70.0410.00026.77
8.2.60.0190.01626.77
8.2.50.0310.01626.77
8.2.40.0330.01526.77
8.2.30.0360.00826.77
8.2.20.0340.00826.77
8.2.10.0300.01026.77
8.2.00.0400.00026.77
8.1.340.0120.00817.69
8.1.330.0130.00621.92
8.1.320.0110.00716.18
8.1.310.0140.00016.55
8.1.300.0040.00418.27
8.1.290.0240.01726.77
8.1.280.0230.01826.77
8.1.270.0300.01326.77
8.1.260.0310.01526.77
8.1.250.0480.00026.77
8.1.240.0330.01026.77
8.1.230.0310.00426.77
8.1.220.0280.00326.77
8.1.210.0410.00426.77
8.1.200.0370.00626.77
8.1.190.0360.00726.77
8.1.180.0420.00326.77
8.1.170.0250.01326.77
8.1.160.0280.01026.77
8.1.150.0310.00726.77
8.1.140.0220.01626.77
8.1.130.0270.00726.77
8.1.120.0360.00326.77
8.1.110.0340.00326.77
8.1.100.0350.00326.77
8.1.90.0340.00426.77
8.1.80.0280.01026.77
8.1.70.0220.01126.77
8.1.60.0420.00426.77
8.1.50.0340.00026.77
8.1.40.0210.00426.77
8.1.30.0430.00026.77
8.1.20.0310.01426.77
8.1.10.0250.01326.77
8.1.00.0350.00826.77

preferences:
47.04 ms | 983 KiB | 5 Q