3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ['p' => 2, 'pm' => 1]; $arr2 = ['p' => '']; print_r(array_merge($arr1, $arr2));

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.130.0080.00016.51
8.3.120.0040.00418.98
8.3.110.0030.00520.94
8.3.100.0100.00016.48
8.3.90.0110.00726.77
8.3.80.0040.00418.31
8.3.70.0070.00716.63
8.3.60.0100.01018.18
8.3.50.0120.00617.38
8.3.40.0110.00318.63
8.3.30.0060.00918.42
8.3.20.0000.00721.58
8.3.10.0040.00421.78
8.3.00.0050.00319.68
8.2.250.0030.00616.58
8.2.240.0030.00619.03
8.2.230.0090.00022.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0050.00516.63
8.2.190.0100.00316.58
8.2.180.0140.00718.29
8.2.170.0070.00722.96
8.2.160.0030.01019.34
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00019.45
8.2.120.0050.00226.35
8.2.110.0060.00321.06
8.2.100.0080.00317.78
8.2.90.0050.00317.84
8.2.80.0050.00317.97
8.2.70.0030.00618.04
8.2.60.0050.00317.90
8.2.50.0050.00318.10
8.2.40.0040.00420.45
8.2.30.0040.00419.20
8.2.20.0040.00417.89
8.2.10.0000.00717.86
8.2.00.0040.00418.04
8.1.300.0080.00818.03
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0060.00323.85
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0140.00722.34
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0080.00018.91
8.1.200.0040.00417.10
8.1.190.0070.00417.23
8.1.180.0000.01018.10
8.1.170.0040.00418.66
8.1.160.0050.00318.73
8.1.150.0000.00719.11
8.1.140.0000.00717.63
8.1.130.0060.00018.99
8.1.120.0000.00817.29
8.1.110.0080.00017.38
8.1.100.0040.00417.35
8.1.90.0040.00417.29
8.1.80.0000.00717.41
8.1.70.0090.00017.34
8.1.60.0000.00817.53
8.1.50.0000.00917.34
8.1.40.0040.00417.46
8.1.30.0050.00317.49
8.1.20.0040.00417.55
8.1.10.0020.00517.43
8.1.00.0040.00417.37
8.0.300.0070.00019.89
8.0.290.0080.00016.58
8.0.280.0070.00018.31
8.0.270.0000.00817.22
8.0.260.0050.00317.05
8.0.250.0060.00316.88
8.0.240.0030.00716.70
8.0.230.0000.00616.85
8.0.220.0070.00016.72
8.0.210.0040.00416.71
8.0.200.0000.00916.89
8.0.190.0080.00016.85
8.0.180.0060.00316.86
8.0.170.0000.00816.86
8.0.160.0000.00716.71
8.0.150.0050.00316.75
8.0.140.0030.00316.74
8.0.130.0060.00013.24
8.0.120.0040.00416.61
8.0.110.0000.00716.88
8.0.100.0030.00416.67
8.0.90.0050.00316.68
8.0.80.0090.00616.82
8.0.70.0000.00816.65
8.0.60.0000.00716.82
8.0.50.0030.00316.77
8.0.30.0130.00717.13
8.0.20.0110.00917.40
8.0.10.0040.00417.01
8.0.00.0090.01116.61
7.4.330.0050.00016.77
7.4.320.0060.00016.36
7.4.300.0030.00316.44
7.4.290.0030.00316.41
7.4.280.0030.00516.34
7.4.270.0030.00316.44
7.4.260.0030.00316.41
7.4.250.0030.00316.38
7.4.240.0030.00316.39
7.4.230.0030.00316.48
7.4.220.0000.00816.44
7.4.210.0100.00516.46
7.4.200.0000.00716.18
7.4.160.0070.01116.40
7.4.140.0130.00517.86
7.4.130.0070.01016.35
7.4.120.0090.00916.48
7.4.110.0030.01316.29
7.4.100.0030.01816.45
7.4.90.0060.01016.47
7.4.80.0190.00719.39
7.4.70.0140.00316.51
7.4.60.0090.00616.43
7.4.50.0070.01016.30
7.4.40.0100.00616.39
7.4.00.0000.01414.70
7.3.330.0020.00212.97
7.3.320.0030.00312.88
7.3.310.0040.00416.14
7.3.300.0000.00616.07
7.3.290.0030.00316.08
7.3.280.0090.00516.14
7.3.260.0140.00216.14
7.3.240.0090.00916.30
7.3.230.0090.00916.26
7.3.210.0070.01016.11
7.3.200.0100.00916.24
7.3.190.0100.00716.47
7.3.180.0130.00616.04
7.3.170.0130.00316.23
7.3.160.0120.00416.28
7.3.120.0060.00816.90
7.3.110.0120.00416.90
7.3.100.0070.00716.90
7.3.90.0030.01416.90
7.3.80.0030.01016.90
7.3.70.0000.01316.90
7.3.60.0040.00816.90
7.3.50.0030.01416.90
7.3.40.0030.00616.90
7.3.30.0060.00616.90
7.3.20.0080.00616.90
7.3.10.0070.00716.79
7.3.00.0020.01016.62
7.2.330.0070.01116.33
7.2.320.0060.01216.35
7.2.310.0120.00916.30
7.2.300.0040.01216.17
7.2.290.0120.01216.09
7.2.240.0000.01416.90
7.2.230.0030.01016.90
7.2.220.0030.01216.90
7.2.210.0080.00416.90
7.2.200.0030.01016.90
7.2.190.0060.00916.90
7.2.180.0040.00816.90
7.2.170.0090.00616.90
7.2.160.0090.00316.90
7.2.150.0060.00616.90
7.2.140.0030.01016.90
7.2.130.0030.01016.77
7.2.120.0070.00716.69
7.2.110.0070.00716.90
7.2.100.0050.00916.65
7.2.90.0060.00816.92
7.2.80.0060.00916.81
7.2.70.0020.01316.87
7.2.60.0030.01116.70
7.2.50.0030.01216.83
7.2.40.0760.01217.01
7.2.30.0450.01017.21
7.2.20.0650.01017.23
7.2.10.0590.01017.08
7.2.00.0590.01217.06
7.1.330.0070.00716.90
7.1.320.0060.00616.90
7.1.310.0060.00916.90
7.1.300.0060.00616.90
7.1.290.0030.01316.90
7.1.280.0060.00616.90
7.1.270.0070.00716.90
7.1.260.0030.01016.90
7.1.250.0030.00616.41
7.1.200.0090.00315.76
7.1.160.1740.01216.84
7.1.150.2170.01616.80
7.1.140.2140.01516.75
7.1.130.1850.01116.75
7.1.120.2000.01816.65
7.1.110.1790.01516.16
7.1.100.1280.01116.13
7.1.90.2110.01216.32
7.1.80.1930.01416.43
7.1.70.1840.00715.24
7.1.60.1930.01433.07
7.1.50.2550.01832.80
7.1.40.3140.01732.46
7.1.30.2710.01932.44
7.1.20.2690.01332.65
7.1.10.2270.01314.46
7.1.00.2230.01214.80

preferences:
27.85 ms | 403 KiB | 5 Q