3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = ['page' => ['title' => 'old title', 'description' => 'old description']]; $second = ['page' => ['title' => 'new title']]; $merge = array_merge_recursive($first, $second); $replace = array_replace_recursive($first, $second); assert($merge['page']['title'] === 'new title'); assert($merge['page']['description'] === 'old description'); assert($replace['page']['title'] === 'new title'); assert($replace['page']['description'] === 'old description');

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.01316.58
8.3.60.0070.00718.31
8.3.50.0240.01017.21
8.3.40.0090.00618.84
8.3.30.0110.00418.67
8.3.20.0040.00420.21
8.3.10.0050.00322.04
8.3.00.0070.00023.64
8.2.190.0040.01416.75
8.2.180.0110.00418.41
8.2.170.0090.00622.96
8.2.160.0070.00720.53
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00819.30
8.2.120.0000.00826.35
8.2.110.0090.00022.08
8.2.100.0050.00518.02
8.2.90.0000.00817.63
8.2.80.0040.00418.75
8.2.70.0030.00517.38
8.2.60.0040.00417.50
8.2.50.0050.00317.50
8.2.40.0000.01017.63
8.2.30.0000.00721.05
8.2.20.0080.00018.10
8.2.10.0000.00717.96
8.2.00.0070.00017.92
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00020.97
8.1.230.0000.01120.84
8.1.220.0090.00017.78
8.1.210.0060.00318.77
8.1.200.0030.00517.35
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0020.00518.80
8.1.150.0000.00719.95
8.1.140.0040.00419.45
8.1.130.0000.00720.71
8.1.120.0040.00417.43
8.1.110.0030.00617.38
8.1.100.0040.00417.34
8.1.90.0000.00717.25
8.1.80.0000.00717.39
8.1.70.0000.00717.42
8.1.60.0040.00417.45
8.1.50.0090.00017.54
8.1.40.0000.00817.56
8.1.30.0000.00717.64
8.1.20.0040.00417.66
8.1.10.0040.00417.59
8.1.00.0050.00317.55
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0070.00018.39
8.0.270.0070.00016.69
8.0.260.0060.00418.44
8.0.250.0000.00717.01
8.0.240.0000.00816.98
8.0.230.0030.00316.95
8.0.220.0020.00516.93
8.0.210.0030.00316.88
8.0.200.0030.00616.82
8.0.190.0000.00717.00
8.0.180.0000.00716.93
8.0.170.0000.00816.90
8.0.160.0070.00016.78
8.0.150.0000.00716.83
8.0.140.0080.00016.81
8.0.130.0000.00513.32
8.0.120.0040.00416.89
8.0.110.0000.00716.94
8.0.100.0080.00016.78
8.0.90.0000.00816.73
8.0.80.0070.00716.86
8.0.70.0030.00316.79
8.0.60.0040.00416.69
8.0.50.0080.00016.88
8.0.30.0040.01617.09
8.0.20.0150.00417.40
8.0.10.0070.00017.00
8.0.00.0060.01216.95
7.4.330.0000.00415.55
7.4.320.0030.00316.51
7.4.300.0030.00316.48
7.4.290.0040.00416.54
7.4.280.0050.00216.51
7.4.270.0000.00716.62
7.4.260.0080.00016.49
7.4.250.0050.00316.44
7.4.240.0070.00016.62
7.4.230.0000.00716.60
7.4.220.0130.00516.51
7.4.210.0100.00716.54
7.4.200.0000.00716.48
7.4.160.0070.01216.42
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0110.00916.68
7.4.120.0100.00816.58
7.4.110.0060.01016.40
7.4.100.0120.01516.55
7.4.90.0030.01316.48
7.4.80.0040.01419.39
7.4.70.0140.00816.54
7.4.60.0130.00316.46
7.4.50.0090.01116.30
7.4.40.0000.01716.47
7.4.30.0080.00916.62
7.4.00.0000.01614.93
7.3.330.0000.00513.13
7.3.320.0030.00313.30
7.3.310.0000.00716.27
7.3.300.0000.00716.41
7.3.290.0060.01016.39
7.3.280.0100.00716.36
7.3.270.0060.01117.40
7.3.260.0100.00716.40
7.3.250.0110.00616.30
7.3.240.0160.00216.40
7.3.230.0060.01516.64
7.3.210.0130.00316.33
7.3.200.0100.00716.39
7.3.190.0090.00616.27
7.3.180.0090.00616.43
7.3.170.0170.00016.45
7.3.160.0130.00316.36
7.2.330.0090.00916.44
7.2.320.0030.01616.36
7.2.310.0100.00716.85
7.2.300.0070.01016.81
7.2.290.0050.01316.35
7.2.60.0140.00016.92
7.1.200.0000.01415.93
7.1.100.0070.00818.10
7.1.90.0110.00417.95
7.1.80.0090.00617.70
7.1.70.0040.00817.32
7.1.60.0180.00735.23
7.1.50.0180.00734.96
7.1.40.0160.01034.45
7.1.30.0220.00334.68
7.1.20.0130.01334.62
7.1.10.0000.01216.68
7.1.00.0000.01216.93
7.0.240.0030.01017.61
7.0.230.0040.01117.57
7.0.220.0040.00917.57
7.0.210.0030.00916.79
7.0.200.0040.00716.51
7.0.190.0030.01016.64
7.0.180.0030.00916.14
7.0.170.0000.01216.19
7.0.160.0040.00816.05
7.0.150.0060.00615.94
7.0.140.0030.01216.34
7.0.130.0000.01216.47
7.0.120.0040.00816.43
7.0.110.0060.00616.26
7.0.100.0000.01416.17
7.0.90.0000.01316.06
7.0.80.0030.00916.32
7.0.70.0030.01416.36
7.0.60.0030.01116.06
7.0.50.0090.00316.45
7.0.40.0090.00316.39
7.0.30.0030.00916.39
7.0.20.0000.01316.55
7.0.10.0060.00616.27
7.0.00.0040.00816.41
5.4.450.0070.00312.69

preferences:
28.42 ms | 401 KiB | 5 Q