3v4l.org

run code in 500+ PHP versions simultaneously
<?php $events = array( // Sept 10 2018 array( 2018 => array( 9 => array( 10 => array( 'event01', 'event01b', ) ) ) ), // Sept 20 2018 array( 2018 => array( 9 => array( 20 => array( 'event02' ) ) ) ), // Oct 5 2019 array( 2018 => array( 10 => array( 5 => array( 'event03' ) ) ) ) ); $merged = array_replace_recursive(...$events); print_r($merged);

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.5.30.0090.00921.21
8.5.20.0060.01119.32
8.5.10.0100.00816.45
8.5.00.0180.00919.75
8.4.180.0120.00925.63
8.4.170.0140.00823.98
8.4.160.0090.01223.71
8.4.150.0080.00516.81
8.4.140.0140.00617.61
8.4.130.0090.00717.83
8.4.120.0130.00720.80
8.4.110.0110.01018.66
8.4.100.0100.01117.45
8.4.90.0140.00717.49
8.4.80.0140.00622.47
8.4.70.0130.00717.92
8.4.60.0110.01020.43
8.4.50.0070.00318.41
8.4.40.0030.00517.53
8.4.30.0000.01617.49
8.4.20.0030.00720.49
8.4.10.0080.00319.61
8.3.300.0110.00922.68
8.3.290.0130.00718.24
8.3.280.0200.00917.95
8.3.270.0120.00716.79
8.3.260.0090.00916.42
8.3.250.0110.00718.68
8.3.240.0130.00716.51
8.3.230.0110.00816.48
8.3.220.0080.00417.21
8.3.210.0130.00716.51
8.3.200.0060.00316.56
8.3.190.0070.01217.19
8.3.180.0030.00618.89
8.3.170.0120.00917.05
8.3.160.0070.01018.30
8.3.150.0030.00617.07
8.3.140.0110.00016.97
8.3.130.0060.00318.30
8.3.120.0070.01020.78
8.3.110.0060.00316.47
8.3.100.0060.01324.06
8.3.90.0110.00826.77
8.3.80.0060.00317.97
8.3.70.0140.00318.36
8.3.60.0040.01118.18
8.3.50.0090.00618.43
8.3.40.0090.00618.63
8.3.30.0110.00418.55
8.3.20.0000.00718.65
8.3.10.0080.00021.90
8.3.00.0070.00021.95
8.2.300.0140.00617.94
8.2.290.0080.00720.59
8.2.280.0130.00720.00
8.2.270.0130.00716.84
8.2.260.0090.00916.89
8.2.250.0120.00618.27
8.2.240.0150.00317.19
8.2.230.0060.00320.94
8.2.220.0030.00737.54
8.2.210.0060.00926.77
8.2.200.0090.00016.50
8.2.190.0040.01118.37
8.2.180.0120.00618.04
8.2.170.0140.00022.96
8.2.160.0070.00720.11
8.2.150.0040.00424.18
8.2.140.0000.01024.66
8.2.130.0040.00422.10
8.2.120.0060.00326.35
8.2.110.0000.01119.34
8.2.100.0060.01017.91
8.2.90.0000.00817.50
8.2.80.0040.00717.97
8.2.70.0040.00417.93
8.2.60.0020.00518.16
8.2.50.0000.00818.10
8.2.40.0040.00421.08
8.2.30.0070.00020.54
8.2.20.0080.00018.06
8.2.10.0000.00717.97
8.2.00.0070.00019.27
8.1.340.0110.00819.39
8.1.330.0110.00716.80
8.1.320.0090.00917.74
8.1.310.0150.00016.84
8.1.300.0070.01316.16
8.1.290.0060.00330.84
8.1.280.0060.00925.92
8.1.270.0060.00322.20
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.92
8.1.230.0140.00017.82
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0050.00517.35
8.1.190.0030.00617.00
8.1.180.0040.00418.10
8.1.170.0000.00818.72
8.1.160.0000.00818.89
8.1.150.0040.00418.83
8.1.140.0080.00018.74
8.1.130.0030.00321.96
8.1.120.0070.00017.34
8.1.110.0000.00717.34
8.1.100.0080.00017.29
8.1.90.0030.00517.36
8.1.80.0040.00417.37
8.1.70.0070.00017.29
8.1.60.0050.00517.52
8.1.50.0050.00317.42
8.1.40.0000.00817.39
8.1.30.0030.00517.61
8.1.20.0050.00317.64
8.1.10.0000.00817.41
8.1.00.0080.00017.25
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0080.00018.37
8.0.270.0070.00017.14
8.0.260.0000.00618.29
8.0.250.0000.00716.85
8.0.240.0070.00016.91
8.0.230.0000.00716.90
8.0.220.0030.00316.89
8.0.210.0070.00016.82
8.0.200.0000.00616.81
8.0.190.0040.00416.89
8.0.180.0040.00416.91
8.0.170.0030.00616.83
8.0.160.0080.00016.91
8.0.150.0050.00216.82
8.0.140.0070.00016.80
8.0.130.0000.00613.30
8.0.120.0040.00416.72
8.0.110.0020.00516.72
8.0.100.0050.00316.63
8.0.90.0000.00716.63
8.0.80.0090.00616.86
8.0.70.0040.00416.84
8.0.60.0040.00416.68
8.0.50.0030.00516.66
8.0.30.0090.00716.80
8.0.20.0140.00517.40
8.0.10.0080.00017.00
8.0.00.0110.00616.77
7.4.330.0050.00015.55
7.4.320.0000.00616.46
7.4.300.0030.00316.37
7.4.290.0000.00716.45
7.4.280.0000.00916.59
7.4.270.0040.00416.44
7.4.260.0000.00716.47
7.4.250.0030.00616.48
7.4.240.0000.00716.36
7.4.230.0070.00016.54
7.4.220.0040.00416.57
7.4.210.0030.01016.48
7.4.200.0000.00716.57
7.4.160.0110.00716.51
7.4.140.0080.01117.86
7.4.130.0090.01216.48
7.4.120.0100.01016.43
7.4.110.0030.01416.38
7.4.100.0070.01016.33
7.4.90.0060.01916.15
7.4.80.0050.01319.39
7.4.70.0100.01016.33
7.4.60.0100.01016.28
7.4.50.0130.00316.54
7.4.40.0060.00916.32
7.4.00.0030.01314.93
7.3.330.0030.00312.89
7.3.320.0000.00512.98
7.3.310.0000.00716.07
7.3.300.0070.00016.10
7.3.290.0030.00316.03
7.3.280.0110.00716.12
7.3.260.0110.01116.29
7.3.240.0120.00616.36
7.3.230.0040.01216.58
7.3.210.0140.00716.23
7.3.200.0060.01216.10
7.3.190.0070.01016.24
7.3.180.0120.00316.26
7.3.170.0130.00316.38
7.3.160.0080.00816.32
7.3.10.0240.00416.47
7.3.00.0270.00315.93
7.2.330.0090.00916.58
7.2.320.0040.01216.41
7.2.310.0130.00316.32
7.2.300.0060.01016.41
7.2.290.0030.01316.63
7.2.130.0300.00716.14
7.2.120.0150.00616.14
7.2.110.0300.01016.57
7.2.100.0530.01015.46
7.2.90.0460.00715.58
7.2.80.0570.01015.48
7.2.70.0540.01015.66
7.2.60.0530.00315.75
7.2.50.0640.00915.93
7.2.40.0740.00715.60
7.2.30.0420.00715.76
7.2.20.0500.00915.74
7.2.10.0420.01515.50
7.2.00.0430.00915.75
7.1.250.0340.00615.02
7.1.220.0980.00413.85
7.1.210.0970.01113.72
7.1.200.0840.01013.86
7.1.190.1180.00613.72
7.1.180.1040.01013.87
7.1.170.1470.01013.89
7.1.160.0630.00913.62
7.1.150.1130.00413.54
7.1.140.0620.01013.64
7.1.130.0700.01013.62
7.1.120.0730.01013.99
7.1.110.0890.00313.83
7.1.100.0750.00313.73
7.1.90.0490.01213.70
7.1.80.0680.00313.61
7.1.70.0760.00313.87
7.1.60.0860.01032.00
7.1.50.0720.01031.80
7.1.40.0700.01331.82
7.1.30.0940.00931.57
7.1.20.0750.01931.89
7.1.10.0590.00713.98
7.1.00.0530.00613.39
5.6.380.0130.01113.71

preferences:
44.41 ms | 1595 KiB | 5 Q