3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ 0 => [ 0 => [ "id_loja" => 123, "id_subloja" => 111, "nm_loja" => "teste" ] ] ]; $arr2 = [ 0 => [ 0 => [ "id_loja" => 123, "id_subloja" => 111, "id_forn" => 9 ] ] ]; var_dump(array_replace_recursive($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.60.0060.00918.31
8.3.50.0110.00418.09
8.3.40.0090.00618.54
8.3.30.0150.00018.56
8.3.20.0030.00618.89
8.3.10.0050.00320.90
8.3.00.0050.00323.61
8.2.180.0100.01018.41
8.2.170.0120.00622.96
8.2.160.0070.00719.33
8.2.150.0070.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00821.13
8.2.120.0050.00326.35
8.2.110.0030.00717.80
8.2.100.0110.00017.72
8.2.90.0030.00619.09
8.2.80.0080.00017.97
8.2.70.0040.00417.80
8.2.60.0030.00517.93
8.2.50.0030.00518.10
8.2.40.0040.00419.19
8.2.30.0050.00219.05
8.2.20.0000.00818.04
8.2.10.0040.00417.86
8.2.00.0050.00319.33
8.1.280.0120.00625.92
8.1.270.0150.00423.94
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0080.00420.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.00
8.1.180.0060.00318.10
8.1.170.0060.00318.74
8.1.160.0070.00018.86
8.1.150.0000.00818.82
8.1.140.0080.00017.63
8.1.130.0030.00319.04
8.1.120.0000.00817.41
8.1.110.0030.00617.26
8.1.100.0000.00717.36
8.1.90.0070.00017.42
8.1.80.0050.00317.41
8.1.70.0000.00717.28
8.1.60.0040.00417.50
8.1.50.0080.00317.38
8.1.40.0000.00917.34
8.1.30.0030.00617.62
8.1.20.0070.00417.66
8.1.10.0060.00317.45
8.1.00.0080.00017.25
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.37
8.0.270.0040.00417.20
8.0.260.0000.00717.29
8.0.250.0030.00316.91
8.0.240.0070.00016.87
8.0.230.0040.00416.86
8.0.220.0060.00316.88
8.0.210.0050.00216.71
8.0.200.0070.00016.85
8.0.190.0000.00816.92
8.0.180.0080.00016.68
8.0.170.0030.00516.84
8.0.160.0000.00716.78
8.0.150.0050.00316.67
8.0.140.0000.00716.67
8.0.130.0030.00313.23
8.0.120.0030.00516.75
8.0.110.0050.00216.87
8.0.100.0000.00816.86
8.0.90.0000.00716.81
8.0.80.0100.00816.83
8.0.70.0030.00316.70
8.0.60.0050.00216.82
8.0.50.0000.00816.80
8.0.30.0140.00416.90
8.0.20.0130.00817.40
8.0.10.0050.00216.80
8.0.00.0110.01116.65
7.4.330.0030.00315.55
7.4.320.0030.00316.40
7.4.300.0030.00316.53
7.4.290.0030.00316.36
7.4.280.0040.00416.52
7.4.270.0070.00016.54
7.4.260.0030.00316.41
7.4.250.0060.00316.39
7.4.240.0070.00016.33
7.4.230.0070.00016.53
7.4.220.0040.00416.24
7.4.210.0070.00716.55
7.4.200.0080.00016.50
7.4.160.0080.00816.58
7.4.140.0100.01017.86
7.4.130.0110.00616.55
7.4.120.0130.01116.44
7.4.110.0110.00616.36
7.4.100.0110.00616.46
7.4.90.0070.01116.43
7.4.80.0060.01519.39
7.4.70.0110.00516.40
7.4.60.0110.00716.43
7.4.50.0060.01216.27
7.4.40.0030.01516.32
7.4.00.0090.00314.86
7.3.330.0030.00313.05
7.3.320.0060.00013.02
7.3.310.0030.00316.10
7.3.300.0030.00316.23
7.3.290.0070.00016.18
7.3.280.0110.00616.12
7.3.260.0100.00716.32
7.3.240.0080.00916.37
7.3.230.0090.00916.13
7.3.210.0090.00916.26
7.3.200.0110.00716.57
7.3.190.0100.00716.14
7.3.180.0110.00516.01
7.3.170.0070.01016.29
7.3.160.0060.01016.27
7.2.330.0130.00716.34
7.2.320.0100.00716.19
7.2.310.0210.00016.57
7.2.300.0050.01316.58
7.2.290.0060.01116.26
7.2.70.2280.00614.61
7.2.60.1790.01914.30
7.2.50.1580.01314.32
7.2.40.1770.01914.38
7.2.30.1370.00714.36
7.2.20.1430.00714.34
7.2.10.1250.00314.70
7.2.00.1240.01014.32
7.1.200.0080.00815.78
7.1.170.1540.01313.66
7.1.160.1270.01013.58
7.1.150.1150.01313.41
7.1.140.0280.01013.57
7.1.130.1050.00713.68
7.1.120.1220.01013.61
7.1.110.1260.00314.03
7.1.100.1180.00313.74
7.1.90.1470.01013.52
7.1.80.1750.01013.64
7.1.70.0510.00313.77
7.1.60.0580.00631.50
7.1.50.1560.01631.82
7.1.40.0450.00731.63
7.1.30.2230.01331.29
7.1.20.0620.01331.56
7.1.10.0940.00613.69
7.1.00.1270.00013.62

preferences:
69.26 ms | 400 KiB | 5 Q