3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cities = ['New York', 'Boston', 'Los Angeles', 'Cincinnati', 'Chicago', 'Houston', 'Philadelphia', 'Dallas', 'Seattle']; var_export( array_reduce( $cities, function($result, $city) { $result[$city[0]][] = $city; return $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.4.130.0130.00817.77
8.4.120.0060.00319.53
8.4.110.0110.01023.96
8.4.100.0110.00917.58
8.4.90.0050.00420.45
8.4.80.0060.00219.06
8.4.70.0080.01218.82
8.4.60.0110.00920.80
8.4.50.0140.00620.24
8.4.40.0110.00718.47
8.4.30.0090.00018.79
8.4.20.0040.00419.61
8.4.10.0130.00619.55
8.3.260.0110.01016.57
8.3.250.0110.00718.80
8.3.240.0100.00916.66
8.3.230.0070.00516.63
8.3.220.0100.00818.85
8.3.210.0090.00918.73
8.3.200.0070.00216.53
8.3.190.0030.00517.30
8.3.180.0130.00619.04
8.3.170.0090.00917.09
8.3.160.0140.00418.93
8.3.150.0080.00016.63
8.3.140.0100.00716.63
8.3.130.0100.01018.42
8.3.120.0160.00318.98
8.3.110.0040.00720.94
8.3.100.0160.00424.06
8.3.90.0130.00626.77
8.3.80.0070.00318.30
8.3.70.0090.00618.42
8.3.60.0100.01016.47
8.3.50.0050.01224.60
8.3.40.0210.00617.38
8.3.30.0250.00317.47
8.3.20.0230.00617.10
8.3.10.0200.00817.50
8.3.00.0210.01217.35
8.2.290.0090.00916.86
8.2.280.0130.00520.17
8.2.270.0070.00018.57
8.2.260.0000.00817.47
8.2.250.0000.00816.70
8.2.240.0060.00318.79
8.2.230.0000.00822.58
8.2.220.0040.00837.54
8.2.210.0070.00726.77
8.2.200.0040.00416.50
8.2.190.0040.01116.58
8.2.180.0300.00016.38
8.2.170.0260.00917.63
8.2.160.0290.00617.25
8.2.150.0290.00617.50
8.2.140.0150.01917.13
8.2.130.0260.00717.24
8.2.120.0280.00617.38
8.2.110.0280.00617.38
8.2.100.0380.00017.38
8.2.90.0250.00817.50
8.2.80.0310.00917.13
8.2.70.0240.00917.25
8.2.60.0110.00617.38
8.2.50.0220.01317.25
8.2.40.0210.01017.48
8.2.30.0270.00417.25
8.2.20.0070.01017.50
8.2.10.0230.00717.47
8.2.00.0310.00017.34
8.1.330.0060.01216.07
8.1.320.0100.00517.84
8.1.310.0030.00616.55
8.1.300.0130.00616.25
8.1.290.0080.00330.84
8.1.280.0280.00415.38
8.1.270.0110.00617.48
8.1.260.0270.00916.87
8.1.250.0290.00417.23
8.1.240.0300.00016.97
8.1.230.0220.00617.38
8.1.220.0240.00517.23
8.1.210.0280.00417.23
8.1.200.0200.00817.09
8.1.190.0210.00917.13
8.1.180.0230.00717.13
8.1.170.0240.00716.98
8.1.160.0220.00817.25
8.1.150.0300.00617.09
8.1.140.0240.00817.12
8.1.130.0210.00917.25
8.1.120.0250.00917.13
8.1.110.0240.01017.25
8.1.100.0260.00917.09
8.1.90.0190.01917.13
8.1.80.0180.01517.38
8.1.70.0310.00317.25
8.1.60.0310.00417.50
8.1.50.0220.01117.25
8.1.40.0260.00716.98
8.1.30.0240.01017.13
8.1.20.0350.00317.25
8.1.10.0250.00817.25
8.1.00.0260.01017.13

preferences:
27.82 ms | 403 KiB | 5 Q