3v4l.org

run code in 300+ PHP versions simultaneously
<?php $defaults = array( 'lang' => 'de', 'be' => 11, 'ce' => 16 ); $given = array( 'lang' => '', 'be' => 12, 'asas'=> 'basas' ); $a = array_merge($given, $defaults); $b = array_merge($defaults, $a); print_r($b);

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.0140.00718.30
8.3.50.0150.00316.18
8.3.40.0090.00918.46
8.3.30.0100.01018.69
8.3.20.0090.00021.83
8.3.10.0070.00021.64
8.3.00.0040.00419.68
8.2.180.0070.00718.04
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00820.53
8.2.120.0070.00026.35
8.2.110.0100.00020.54
8.2.100.0070.00417.91
8.2.90.0080.00317.63
8.2.80.0090.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00720.58
8.2.30.0040.00419.04
8.2.20.0040.00417.86
8.2.10.0060.00317.92
8.2.00.0040.00418.13
8.1.280.0150.00625.92
8.1.270.0080.00020.70
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00522.17
8.1.230.0040.00720.91
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0060.00317.10
8.1.190.0040.00417.09
8.1.180.0000.00718.10
8.1.170.0040.00418.70
8.1.160.0040.00418.87
8.1.150.0030.00320.15
8.1.140.0050.00219.37
8.1.130.0000.00818.84
8.1.120.0070.00017.44
8.1.110.0030.00617.39
8.1.100.0040.00417.27
8.1.90.0000.01117.41
8.1.80.0040.00417.29
8.1.70.0040.00417.36
8.1.60.0040.00417.47
8.1.50.0000.00817.34
8.1.40.0040.00417.50
8.1.30.0050.00217.58
8.1.20.0020.00517.44
8.1.10.0030.00517.36
8.1.00.0040.00417.38
8.0.300.0020.00520.08
8.0.290.0000.00716.63
8.0.280.0000.00718.27
8.0.270.0070.00017.24
8.0.260.0000.00618.81
8.0.250.0070.00016.81
8.0.240.0030.00316.89
8.0.230.0000.00716.85
8.0.220.0030.00316.70
8.0.210.0000.00716.82
8.0.200.0040.00416.76
8.0.190.0030.00716.83
8.0.180.0030.00316.73
8.0.170.0000.00816.90
8.0.160.0050.00316.89
8.0.150.0070.00016.79
8.0.140.0000.00816.75
8.0.130.0000.00513.20
8.0.120.0050.00316.80
8.0.110.0040.00416.83
8.0.100.0050.00316.85
8.0.90.0000.00816.61
8.0.80.0090.00616.69
8.0.70.0040.00416.64
8.0.60.0040.00416.66
8.0.50.0030.00316.75
8.0.30.0120.00817.03
8.0.20.0080.01117.40
8.0.10.0070.00016.91
8.0.00.0140.00716.74
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0070.00016.52
7.4.290.0030.00316.38
7.4.280.0040.00416.52
7.4.270.0080.00416.42
7.4.260.0030.00316.41
7.4.250.0000.00716.28
7.4.240.0000.00816.36
7.4.230.0030.00316.24
7.4.220.0060.01216.58
7.4.210.0090.00616.43
7.4.200.0070.00016.53
7.4.160.0110.00616.30
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0140.01016.54
7.4.120.0100.01116.45
7.4.110.0150.00416.54
7.4.100.0130.00716.44
7.4.90.0060.01216.31
7.4.80.0100.00619.39
7.4.70.0120.00316.26
7.4.60.0060.01016.40
7.4.50.0100.00016.23
7.4.40.0110.00516.31
7.4.30.0100.00716.63
7.4.00.0090.00615.11
7.3.330.0030.00312.88
7.3.320.0000.00512.88
7.3.310.0030.00316.09
7.3.300.0000.00716.09
7.3.290.0070.01016.14
7.3.280.0080.00816.11
7.3.270.0100.00617.40
7.3.260.0080.01116.25
7.3.250.0110.01016.38
7.3.240.0140.00516.34
7.3.230.0120.00616.36
7.3.210.0110.01216.11
7.3.200.0000.01716.06
7.3.190.0100.00616.39
7.3.180.0080.00816.16
7.3.170.0060.00916.46
7.3.160.0060.01116.34
7.2.330.0130.00616.63
7.2.320.0000.01716.68
7.2.310.0100.00716.59
7.2.300.0070.01516.23
7.2.290.0170.00716.54
7.2.60.0180.00916.31
7.2.50.0040.00716.59
7.1.200.0070.00315.73
7.1.70.0050.00516.98
7.1.60.1330.00733.23
7.1.50.1130.02032.82
7.1.40.1170.01732.71
7.1.30.1070.01732.45
7.1.20.1400.02032.64
7.1.10.0770.01014.85
7.1.00.0970.00714.71
7.0.200.2130.00714.91
7.0.190.0700.00714.77
7.0.180.1230.00714.46
7.0.170.1330.01314.57
7.0.160.1270.01314.40
7.0.150.0730.01014.32
7.0.140.0700.01014.32
7.0.130.0970.00314.64
7.0.120.0700.01314.81
7.0.110.0570.01314.59
7.0.100.0670.01314.28
7.0.90.0700.01014.46
7.0.80.0630.00714.67
7.0.70.0800.00314.40
7.0.60.0800.01014.13
7.0.50.0670.01314.70
7.0.40.0530.01714.50
7.0.30.0530.02014.79
7.0.20.0500.01014.70
7.0.10.0770.01314.52
7.0.00.0670.01314.45

preferences:
39.46 ms | 401 KiB | 5 Q