3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1, 10); $prefix = 'foo'; var_export( array_combine( substr_replace($array, 'key', 0, 0), substr_replace($array, 'value', 0, 0) ) );

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.00.0120.01019.94
8.4.150.0030.00014.05
8.4.140.0090.01217.46
8.4.130.0130.00717.65
8.4.120.0070.00820.77
8.4.110.0080.00522.30
8.4.100.0170.00417.57
8.4.90.0130.00718.56
8.4.80.0110.00817.85
8.4.70.0100.01117.58
8.4.60.0100.00918.38
8.4.50.0120.00817.63
8.4.40.0100.01018.50
8.4.30.0090.00919.00
8.4.20.0100.01019.50
8.4.10.0080.00819.27
8.3.280.0120.00818.19
8.3.270.0090.01016.41
8.3.260.0130.00616.38
8.3.250.0040.00418.74
8.3.240.0100.00816.41
8.3.230.0070.01216.57
8.3.220.0040.00417.06
8.3.210.0050.00418.24
8.3.200.0070.00216.19
8.3.190.0120.00716.39
8.3.180.0100.00816.40
8.3.170.0110.00718.71
8.3.160.0100.00717.05
8.3.150.0040.00418.79
8.3.140.0070.01116.42
8.3.130.0140.00716.47
8.3.120.0080.00019.05
8.3.110.0000.00820.94
8.3.100.0070.00324.06
8.3.90.0110.00426.77
8.3.80.0000.00916.50
8.3.70.0150.00318.43
8.3.60.0070.01416.48
8.3.50.0110.01116.47
8.3.40.0400.01019.62
8.3.30.0250.01318.59
8.3.20.0150.00923.61
8.3.10.0040.01523.64
8.3.00.0160.00918.37
8.2.290.0100.00920.09
8.2.280.0030.00518.20
8.2.270.0180.00016.97
8.2.260.0110.00416.36
8.2.250.0120.00318.39
8.2.240.0030.00616.39
8.2.230.0040.00422.58
8.2.220.0050.00337.54
8.2.210.0070.01026.77
8.2.200.0060.00316.50
8.2.190.0090.00916.63
8.2.180.0190.00316.38
8.2.170.0330.00618.63
8.2.160.0290.01320.00
8.2.150.0200.00418.98
8.2.140.0090.00920.47
8.2.130.0070.01020.53
8.2.120.0030.01618.86
8.2.110.0100.00719.13
8.2.100.0100.00719.27
8.2.90.0220.00718.46
8.2.80.0160.00319.05
8.2.70.0190.01218.77
8.2.60.0070.01818.77
8.2.50.0150.00919.02
8.2.40.0250.00318.33
8.2.30.0230.00320.19
8.2.20.0140.01418.46
8.2.10.0160.01018.55
8.2.00.0250.00318.73
8.1.330.0110.00721.75
8.1.320.0080.01015.85
8.1.310.0100.00718.38
8.1.300.0190.00318.62
8.1.290.0050.00530.84
8.1.280.0110.00725.92
8.1.270.0140.00323.96
8.1.260.0140.00623.76
8.1.250.0100.00723.99
8.1.240.0180.00718.38
8.1.230.0190.00618.40
8.1.220.0110.01118.88
8.1.210.0160.00818.31
8.1.200.0170.00418.55
8.1.190.0150.00818.32
8.1.180.0270.00318.25
8.1.170.0240.00318.63
8.1.160.0150.01218.43
8.1.150.0260.00318.39
8.1.140.0200.00418.52
8.1.130.0140.01418.73
8.1.120.0170.01018.56
8.1.110.0170.00718.29
8.1.100.0060.01319.57
8.1.90.0170.00718.16
8.1.80.0170.00719.71
8.1.70.0140.00718.63
8.1.60.0240.00318.68
8.1.50.0220.00318.63
8.1.40.0090.01518.44
8.1.30.0150.00618.81
8.1.20.0170.01019.72
8.1.10.0190.01318.45
8.1.00.0170.01418.25

preferences:
86.79 ms | 403 KiB | 5 Q