3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ "key0" => 0, "key1" => 1, "key2" => 2 ]; var_export( array_combine( array_keys($myArray), array_map('strval', $myArray) ) );

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.3.70.0030.01416.58
8.3.60.0110.00416.50
8.3.50.0030.01420.08
8.3.40.0100.00721.91
8.3.30.0090.00618.60
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.180.0140.00425.92
8.2.170.0120.00318.88
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00820.82
8.2.110.0100.01020.37
8.2.100.0110.00417.78
8.2.90.0050.00317.63
8.2.80.0030.00618.63
8.2.70.0060.00617.25
8.2.60.0110.00417.53
8.2.50.0040.00718.07
8.2.40.0070.00018.16
8.2.30.0000.00817.89
8.2.20.0040.00420.46
8.2.10.0000.00817.92
8.2.00.0000.01119.21
8.1.280.0150.00025.92
8.1.270.0090.00023.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00421.93
8.1.230.0080.00321.04
8.1.220.0090.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0100.00018.43
8.1.160.0000.00818.74
8.1.150.0000.00718.55
8.1.140.0000.00717.36
8.1.130.0020.00518.72
8.1.120.0030.00317.30
8.1.110.0070.00017.42
8.1.100.0050.00217.33
8.1.90.0030.00517.37
8.1.80.0130.00517.39
8.1.70.0080.00617.22
8.1.60.0040.01217.43
8.1.50.0110.00417.31
8.1.40.0070.00717.31
8.1.30.0120.00417.55
8.1.20.0140.00317.54
8.1.10.0040.00817.39
8.1.00.0100.00517.37
8.0.300.0040.00418.87
8.0.290.0040.00416.75
8.0.280.0030.00318.27
8.0.270.0000.00816.63
8.0.260.0030.00318.28
8.0.250.0050.00316.79
8.0.240.0070.00016.89
8.0.230.0030.00316.88
8.0.220.0000.00716.77
8.0.210.0080.00816.73
8.0.200.0110.00416.71
8.0.190.0000.01416.68
8.0.180.0020.01016.76
8.0.170.0120.00216.77
8.0.160.0070.00416.61
8.0.150.0100.00016.63
8.0.140.0040.00816.50
8.0.130.0060.00616.47
8.0.120.0070.00316.59
8.0.110.0060.00616.62
8.0.100.0070.00416.54
8.0.90.0000.01116.75
8.0.80.0070.00516.81
8.0.70.0110.00416.66
8.0.60.0120.00216.72
8.0.50.0080.00816.83
8.0.30.0090.00516.65
8.0.20.0110.00216.54
8.0.10.0120.00416.95
7.4.330.0000.00615.55
7.4.320.0030.00316.57
7.4.300.0120.00316.20
7.4.290.0060.00716.35
7.4.280.0050.01016.38
7.4.270.0110.00316.36
7.4.260.0120.00316.34
7.4.250.0040.01216.44
7.4.240.0110.00716.46
7.4.230.0140.00516.47
7.4.220.0090.00516.40
7.4.210.0100.00316.45
7.4.200.0160.00016.34
7.4.190.0100.00316.54
7.4.180.0100.00516.42
7.4.160.0150.00016.39
7.4.150.0070.00616.10
7.4.140.0080.00416.41
7.4.130.0100.00416.25
7.4.120.0140.00016.32
7.4.110.0160.00016.14
7.4.100.0030.00816.38
7.4.90.0100.00016.41
7.4.80.0030.00815.99
7.4.70.0110.00016.19
7.4.60.0050.00715.96
7.4.50.0070.00416.18
7.4.40.0050.00515.98
7.4.30.0040.00416.23
7.4.20.0090.00016.28
7.4.10.0080.00016.23
7.4.00.0080.00016.27

preferences:
54.82 ms | 401 KiB | 5 Q