3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'firstname', 'bob', 'lastname', 'alex', 'foo', ]; var_export( array_combine( ...array_map( null, ...array_chunk($array, 2) ) ) );

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.0060.00318.07
8.5.20.0100.00820.26
8.5.10.0140.00616.64
8.5.00.0090.01119.95
8.4.180.0140.01219.63
8.4.170.0130.00920.33
8.4.160.0120.01023.96
8.4.150.0080.00416.74
8.4.140.0130.00717.30
8.4.130.0130.00917.78
8.4.120.0110.00820.66
8.4.110.0110.00918.61
8.4.100.0140.00617.65
8.4.90.0100.01020.61
8.4.80.0130.00620.58
8.4.70.0090.00818.67
8.4.60.0070.00922.33
8.4.50.0120.00820.19
8.4.40.0130.00717.41
8.4.30.0060.01120.74
8.4.20.0390.01017.44
8.4.10.0450.00317.22
8.3.300.0080.01320.68
8.3.290.0130.01020.62
8.3.280.0120.00718.14
8.3.270.0080.01116.56
8.3.260.0110.00816.54
8.3.250.0080.01018.73
8.3.240.0110.00816.39
8.3.230.0090.00616.47
8.3.220.0110.00718.87
8.3.210.0110.00716.40
8.3.200.0020.00616.38
8.3.190.0100.01017.23
8.3.180.0050.00318.86
8.3.170.0090.00916.89
8.3.160.0040.01416.63
8.3.150.0320.01416.65
8.3.140.0370.01016.27
8.3.130.0490.00016.17
8.3.120.0310.00916.36
8.3.110.0160.02016.12
8.3.100.0390.00716.39
8.3.90.0340.01116.39
8.3.80.0360.01016.22
8.3.70.0290.01316.54
8.3.60.0410.00316.40
8.3.50.0350.01016.30
8.3.40.0490.00416.91
8.3.30.0270.00917.32
8.3.20.0250.01117.27
8.3.10.0260.00817.38
8.3.00.0190.00617.30
8.2.300.0130.00618.11
8.2.290.0050.00516.48
8.2.280.0080.00718.49
8.2.270.0320.00716.55
8.2.260.0320.00616.23
8.2.250.0310.00716.34
8.2.240.0310.00416.38
8.2.230.0210.01516.20
8.2.220.0210.01716.61
8.2.210.0250.01216.50
8.2.200.0350.00316.21
8.2.190.0280.01116.11
8.2.180.0320.00616.20
8.2.170.0310.00917.23
8.2.160.0290.01117.48
8.2.150.0400.00017.40
8.2.140.0330.00417.35
8.2.130.0320.00717.28
8.2.120.0450.00617.32
8.2.110.0300.01117.49
8.2.100.0320.00617.24
8.2.90.0270.01217.50
8.2.80.0340.00617.54
8.2.70.0350.00417.53
8.2.60.0270.01417.00
8.2.50.0340.01117.05
8.2.40.0250.00317.29
8.2.30.0140.00517.34
8.2.20.0420.00017.29
8.2.10.0280.00817.52
8.2.00.0360.00017.43
8.1.340.0110.00921.66
8.1.320.0120.00715.90

preferences:
50.82 ms | 849 KiB | 5 Q