3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( "name", 'a', 'b'); $array2 = array( "letsc" ); print_r(array_fill_keys($array2, $array1));

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.60.0120.00418.11
8.3.50.0230.00716.47
8.3.40.0130.00718.70
8.3.30.0130.00918.36
8.3.20.0080.00018.52
8.3.10.0040.00418.65
8.3.00.0040.00419.00
8.2.180.0210.00016.38
8.2.170.0070.00722.96
8.2.160.0080.00818.59
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00820.74
8.2.110.0060.00320.38
8.2.100.0110.00017.72
8.2.90.0030.00617.38
8.2.80.0000.00818.61
8.2.70.0030.00617.38
8.2.60.0000.00917.50
8.2.50.0030.00619.20
8.2.40.0060.00317.62
8.2.30.0030.00617.70
8.2.20.0030.00717.45
8.2.10.0050.00217.52
8.2.00.0060.00317.58
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0070.00423.83
8.1.230.0040.00821.04
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0000.00917.62
8.1.160.0030.00518.45
8.1.150.0040.00418.56
8.1.140.0070.00017.38
8.1.130.0030.00317.81
8.1.120.0030.00517.35
8.1.110.0040.00417.43
8.1.100.0070.00017.27
8.1.90.0000.00717.38
8.1.80.0040.00417.27
8.1.70.0070.00017.37
8.1.60.0040.00417.54
8.1.50.0070.00017.28
8.1.40.0050.00217.39
8.1.30.0000.00817.59
8.1.20.0120.00017.60
8.1.10.0040.00417.38
8.1.00.0030.00517.42
8.0.300.0000.00820.46
8.0.290.0040.00416.75
8.0.280.0040.00417.89
8.0.270.0030.00317.20
8.0.260.0030.00316.74
8.0.250.0040.00416.79
8.0.240.0040.00416.90
8.0.230.0030.00316.92
8.0.220.0060.00016.82
8.0.210.0000.00716.74
8.0.200.0040.00416.80
8.0.190.0000.00716.91
8.0.180.0060.00316.79
8.0.170.0050.00316.73
8.0.160.0040.00416.77
8.0.150.0090.00016.69
8.0.140.0030.00616.75
8.0.130.0060.00013.34
8.0.120.0030.00616.80
8.0.110.0040.00416.81
8.0.100.0000.00716.77
8.0.90.0070.00016.66
8.0.80.0050.01116.73
8.0.70.0060.00316.86
8.0.60.0080.00016.66
8.0.50.0040.00416.78
8.0.30.0100.00717.11
8.0.20.0140.00816.79
8.0.10.0040.00416.92
8.0.00.0110.00816.54
7.4.330.0070.00012.93
7.4.320.0000.00716.54
7.4.300.0000.00616.54
7.4.290.0070.00016.43
7.4.280.0040.00416.45
7.4.270.0000.00716.42
7.4.260.0000.00613.21
7.4.250.0000.00816.41
7.4.240.0030.00316.38
7.4.230.0000.00716.18
7.4.220.0160.00616.59
7.4.210.0030.01016.55
7.4.200.0080.00016.54
7.4.190.0000.00716.29
7.4.160.0060.00916.43
7.4.150.0060.01016.55
7.4.140.0050.01516.28
7.4.130.0100.00716.50
7.4.120.0060.01016.45
7.4.110.0100.00716.35
7.4.100.0040.01316.44
7.4.90.0040.01516.30
7.4.80.0000.01719.39
7.4.70.0070.01016.42
7.4.60.0130.00316.27
7.4.50.0040.00416.39
7.4.40.0090.00316.47
7.4.30.0090.00616.43
7.4.00.0090.00814.68
7.3.330.0030.00312.97
7.3.320.0030.00312.99
7.3.310.0000.00716.20
7.3.300.0000.00716.17
7.3.290.0070.00716.13
7.3.280.0060.00916.11
7.3.270.0240.00016.27
7.3.260.0070.01016.36
7.3.250.0120.00716.10
7.3.240.0100.00716.39
7.3.230.0040.01416.29
7.3.210.0030.01316.51
7.3.200.0030.01316.47
7.3.190.0120.00616.23
7.3.180.0040.01116.16
7.3.170.0060.00916.25
7.3.160.0060.01216.51
7.3.120.0070.01014.84
7.3.110.0070.00714.82
7.3.100.0030.01614.57
7.3.90.0120.00314.41
7.3.80.0030.01214.75
7.3.70.0060.00614.73
7.3.60.0070.00314.54
7.3.50.0070.00714.66
7.3.40.0060.00614.73
7.3.30.0080.00514.63
7.3.20.0070.00316.57
7.3.10.0110.00316.40
7.3.00.0060.00616.42
7.2.330.0160.00016.42
7.2.320.0130.00316.51
7.2.310.0110.01016.38
7.2.300.0170.00016.19
7.2.290.0060.00916.55
7.2.250.0040.01614.72
7.2.240.0000.01215.11
7.2.230.0090.00414.71
7.2.220.0130.00614.82
7.2.210.0130.00014.99
7.2.200.0090.00314.75
7.2.190.0100.01014.93
7.2.180.0000.01014.79
7.2.170.0070.00714.83
7.2.130.0000.01316.63
7.2.120.0040.00816.80
7.2.110.0080.00416.46
7.2.100.0040.00416.58
7.2.90.0100.00316.74
7.2.80.0090.00616.77
7.2.70.0080.00716.73
7.2.60.0030.01216.65
7.2.50.0070.00716.81
7.2.40.0090.00316.68
7.2.30.0090.00316.57
7.2.20.0080.00816.62
7.2.10.0000.01416.69
7.2.00.0040.00917.98
7.1.330.0110.00415.57
7.1.320.0130.00615.63
7.1.310.0090.00616.05
7.1.300.0120.00315.73
7.1.290.0060.00315.77
7.1.280.0100.00715.54
7.1.270.0080.00815.64
7.1.260.0000.00915.73
7.1.250.0080.00315.76
7.1.100.0040.00417.66
7.1.70.0030.01617.13
7.1.60.0070.01719.30
7.1.50.0090.00916.63
7.1.00.0070.06322.31
7.0.200.0000.01116.67
7.0.140.0030.07322.09
7.0.120.0000.04022.08
7.0.60.0130.07319.93
7.0.50.0070.04017.82
7.0.40.0030.05020.40
7.0.30.0230.09020.33
7.0.20.0300.08320.23
7.0.10.0130.08020.09
7.0.00.0030.05320.19
5.6.280.0030.07321.06
5.6.210.0070.03720.50
5.6.200.0070.04018.18
5.6.190.0170.08020.41
5.6.180.0300.06720.67
5.6.170.0270.04020.50
5.6.160.0030.09320.57
5.6.150.0130.07318.11
5.6.140.0070.07018.17
5.6.130.0070.08318.28
5.6.120.0100.08021.14
5.6.110.0130.04021.00
5.6.100.0030.06020.98
5.6.90.0130.07721.12
5.6.80.0030.06720.39
5.6.70.4370.03720.47
5.5.350.0200.07020.39
5.5.340.0070.06718.09
5.5.330.0000.04320.47
5.5.320.0270.07720.23
5.5.310.0130.05020.41
5.5.300.0070.04318.08
5.5.290.0030.06318.08
5.5.280.0100.06320.64
5.5.270.0070.08720.66
5.5.260.0270.06720.83
5.5.250.0130.07320.57
5.5.240.0230.04720.27
5.4.450.0130.07019.58
5.4.440.0100.06019.47
5.4.430.0070.04319.25
5.4.420.0100.07019.56
5.4.410.0100.05719.04
5.4.400.0070.07719.24
5.4.390.0100.06719.16
5.4.380.0030.04719.16
5.4.370.0130.06319.16
5.4.360.0100.04319.11
5.4.350.0030.04018.87
5.4.340.0100.07319.23
5.4.320.0070.05018.87
5.4.310.0070.07018.87
5.4.300.0070.04718.84
5.4.290.0070.07018.85
5.4.280.0030.08319.14
5.4.270.0170.06018.86
5.4.260.0030.08019.11
5.4.250.0070.05019.14
5.4.240.0200.06719.14
5.4.230.0030.08019.11
5.4.220.0100.03719.07
5.4.210.0070.04019.23
5.4.200.0030.04719.11
5.4.190.0000.04019.13
5.4.180.0030.04018.86
5.4.170.0030.04019.13
5.4.160.0100.03019.21
5.4.150.0000.04318.97
5.4.140.0000.03716.50
5.4.130.0030.03716.45
5.4.120.0070.04316.28
5.4.110.0100.03016.30
5.4.100.0030.03316.33
5.4.90.0030.03716.30
5.4.80.0000.04016.39
5.4.70.0000.03716.43
5.4.60.0000.03716.36
5.4.50.0000.03716.31
5.4.40.0000.03716.44
5.4.30.0000.03716.36
5.4.20.0030.03716.36
5.4.10.0000.04016.50
5.4.00.0030.03315.93
5.3.290.0030.08314.68
5.3.280.0100.07014.73
5.3.270.0000.04714.76
5.3.260.0070.04014.63
5.3.250.0030.03714.75
5.3.240.0070.03314.65
5.3.230.0030.03714.65
5.3.220.0070.03314.73
5.3.210.0100.03014.55
5.3.200.0030.03714.59
5.3.190.0030.03714.55
5.3.180.0030.03714.59
5.3.170.0070.03314.70
5.3.160.0000.04714.64
5.3.150.0100.03014.71
5.3.140.0000.04014.54
5.3.130.0000.04014.54
5.3.120.0030.04014.59
5.3.110.0030.03714.58
5.3.100.0070.03314.04
5.3.90.0070.04014.02
5.3.80.0100.02714.01
5.3.70.0030.03713.91
5.3.60.0070.03313.89
5.3.50.0000.04013.83
5.3.40.0000.04013.99
5.3.30.0100.04714.06
5.3.20.0030.03713.69
5.3.10.0000.03713.64
5.3.00.0030.04013.68
5.2.170.0000.03011.08
5.2.160.0000.03011.14
5.2.150.0000.03011.14
5.2.140.0000.03011.29
5.2.130.0030.02711.02
5.2.120.0000.03011.11
5.2.110.0100.05711.04
5.2.100.0030.03011.19
5.2.90.0030.06311.14
5.2.80.0070.02311.25
5.2.70.0100.04311.04
5.2.60.0000.06311.13
5.2.50.0070.02711.09
5.2.40.0030.05711.04
5.2.30.0000.06310.93
5.2.20.0100.03711.09
5.2.10.0000.03010.77
5.2.00.0170.05710.74
5.1.60.0030.0579.96
5.1.50.0030.0579.89
5.1.40.0030.0539.96
5.1.30.0070.05310.34
5.1.20.0100.04710.23
5.1.10.0070.05310.04
5.1.00.0100.0509.96
5.0.50.0030.0378.47
5.0.40.0030.0238.46
5.0.30.0000.0708.30
5.0.20.0070.0308.30
5.0.10.0030.0408.30
5.0.00.0030.0638.30
4.4.90.0030.0208.30
4.4.80.0030.0138.30
4.4.70.0100.0338.30
4.4.60.0000.0308.30
4.4.50.0070.0338.30
4.4.40.0070.0508.30
4.4.30.0030.0338.30
4.4.20.0000.0408.30
4.4.10.0070.0278.30
4.4.00.0030.0538.30
4.3.110.0070.0238.30
4.3.100.0030.0338.30
4.3.90.0000.0338.30
4.3.80.0030.0538.30
4.3.70.0030.0208.30
4.3.60.0030.0308.30
4.3.50.0030.0308.30
4.3.40.0000.0478.30
4.3.30.0000.0338.30
4.3.20.0070.0208.30
4.3.10.0030.0338.30
4.3.00.0030.0338.30

preferences:
62.98 ms | 401 KiB | 5 Q