3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar1 = array("color" => array("favorite" => "red"), 5); $ar2 = array(10, "color" => array("favorite" => "green", "blue")); $result = array_merge_recursive($ar1, $ar2); print_r($result);

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.0000.01516.48
8.3.50.0130.00522.04
8.3.40.0110.00418.45
8.3.30.0110.00318.92
8.3.20.0070.00020.09
8.3.10.0100.00524.34
8.3.00.0040.00419.13
8.2.180.0150.00618.16
8.2.170.0150.00322.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00022.26
8.2.110.0030.00721.13
8.2.100.0140.00017.59
8.2.90.0050.00517.50
8.2.80.0030.00617.97
8.2.70.0060.00917.50
8.2.60.0060.00317.92
8.2.50.0060.00318.07
8.2.40.0040.00418.02
8.2.30.0070.00017.98
8.2.20.0050.00317.48
8.2.10.0040.00418.07
8.2.00.0060.00317.54
8.1.280.0100.01025.92
8.1.270.0050.00322.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.90
8.1.230.0120.00017.70
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.28
8.1.180.0080.00018.10
8.1.170.0040.00418.55
8.1.160.0000.00721.81
8.1.150.0070.00018.55
8.1.140.0000.00817.38
8.1.130.0040.00417.78
8.1.120.0000.00717.37
8.1.110.0040.00417.29
8.1.100.0030.00417.33
8.1.90.0000.00717.27
8.1.80.0040.00417.40
8.1.70.0050.00417.23
8.1.60.0060.00617.15
8.1.50.0090.00517.32
8.1.40.0090.00517.22
8.1.30.0060.00517.36
8.1.20.0070.00417.39
8.1.10.0060.00717.41
8.1.00.0070.00517.34
8.0.300.0000.00818.77
8.0.290.0030.00517.18
8.0.280.0040.00418.38
8.0.270.0000.00717.13
8.0.260.0060.00016.80
8.0.250.0030.00316.76
8.0.240.0020.00516.80
8.0.230.0000.00716.86
8.0.220.0060.00016.68
8.0.210.0030.00316.79
8.0.200.0070.00516.82
8.0.190.0070.00416.82
8.0.180.0050.00816.81
8.0.170.0080.00516.74
8.0.160.0090.00416.79
8.0.150.0060.00716.76
8.0.140.0090.00416.74
8.0.130.0050.00715.78
8.0.120.0060.00516.04
8.0.110.0080.00316.17
8.0.100.0070.00516.17
8.0.90.0090.00216.29
8.0.80.0070.00716.27
8.0.70.0070.00516.15
8.0.60.0080.00416.13
8.0.50.0090.00316.12
8.0.30.0070.00716.41
8.0.20.0100.00416.51
8.0.10.0060.00716.53
8.0.00.0090.00516.49
7.4.330.0110.00416.63
7.4.320.0030.00316.47
7.4.300.0060.00316.31
7.4.290.0070.00316.45
7.4.280.0040.00816.40
7.4.270.0090.00216.30
7.4.260.0050.00316.38
7.4.250.0040.00415.60
7.4.240.0030.00715.85
7.4.230.0050.00515.81
7.4.220.0060.00515.87
7.4.210.0080.00416.07
7.4.200.0070.00215.79
7.4.190.0050.00515.85
7.4.180.0070.00315.90
7.4.160.0090.00416.05
7.4.150.0050.00616.10
7.4.140.0070.00616.30
7.4.130.0090.00516.03
7.4.120.0080.00716.04
7.4.110.0090.00715.91
7.4.100.0080.00816.08
7.4.90.0070.00816.06
7.4.80.0100.00516.25
7.4.70.0090.00615.99
7.4.60.0100.00516.04
7.4.50.0070.00716.01
7.4.40.0080.00616.44
7.4.30.0070.00716.02
7.4.20.0100.00616.08
7.4.10.0090.00716.04
7.4.00.0070.00815.92
7.3.330.0120.00515.25
7.3.320.0100.00514.78
7.3.310.0090.00415.54
7.3.300.0080.00615.51
7.3.290.0080.00615.64
7.3.280.0100.00515.80
7.3.270.0100.00515.90
7.3.260.0100.00515.77
7.3.250.0080.00815.75
7.3.240.0080.00815.83
7.3.230.0090.00715.91
7.3.220.0090.00615.84
7.3.210.0100.00615.86
7.3.200.0090.00716.14
7.3.190.0090.00815.96
7.3.180.0090.00815.93
7.3.170.0080.00715.92
7.3.160.0100.00615.79
7.3.150.0090.00715.81
7.3.140.0090.00715.85
7.3.130.0100.00715.91
7.3.120.0090.00715.81
7.3.110.0090.00715.80
7.3.100.0090.00715.52
7.3.90.0100.00615.65
7.3.80.0090.00815.60
7.3.70.0090.00715.57
7.3.60.0080.00815.55
7.3.50.0090.00815.53
7.3.40.0070.00915.52
7.3.30.0100.00715.54
7.3.20.0090.00816.05
7.3.10.0090.00815.99
7.3.00.0100.00816.04
7.2.340.0140.00716.02
7.2.330.0140.00515.99
7.2.320.0120.00815.98
7.2.310.0110.00716.08
7.2.300.0110.00915.97
7.2.290.0130.00615.98
7.2.280.0130.00715.98
7.2.270.0090.01016.00
7.2.260.0120.00716.13
7.2.250.0110.00916.00
7.2.240.0130.00816.03
7.2.230.0120.00715.75
7.2.220.0100.00915.77
7.2.210.0110.00815.80
7.2.200.0100.00915.73
7.2.190.0110.00815.70
7.2.180.0130.00815.73
7.2.170.0100.00915.76
7.2.160.0110.00815.72
7.2.150.0140.00816.21
7.2.140.0110.00816.25
7.2.130.0120.00816.33
7.2.120.0110.00816.26
7.2.110.0110.00816.24
7.2.100.0140.00716.25
7.2.90.0110.00916.29
7.2.80.0120.00816.16
7.2.70.0120.00816.24
7.2.60.0140.00816.30
7.2.50.0100.00816.24
7.2.40.0130.00716.30
7.2.30.0110.00916.33
7.2.20.0120.00916.43
7.2.10.0150.00716.41
7.2.00.0130.00816.47
7.1.330.0160.00615.73
7.1.320.0150.00715.32
7.1.310.0130.00615.28
7.1.300.0130.00815.16
7.1.290.0120.00715.21
7.1.280.0130.00715.20
7.1.270.0120.00815.15
7.1.260.0120.00715.16
7.1.250.0120.00715.13
7.1.240.0130.00715.16
7.1.230.0130.00715.13
7.1.220.0130.00715.13
7.1.210.0160.00815.15
7.1.200.0120.00715.10
7.1.190.0130.00715.16
7.1.180.0140.00715.09
7.1.170.0130.00715.10
7.1.160.0140.00715.07
7.1.150.0130.00915.14
7.1.140.0140.00715.22
7.1.130.0140.00815.30
7.1.120.0130.00815.29
7.1.110.0130.00915.23
7.1.100.0160.00715.25
7.1.90.0140.00715.26
7.1.80.0130.00815.29
7.1.70.0140.00815.07
7.1.60.0160.00817.32
7.1.50.0140.01017.28
7.1.40.0160.00817.24
7.1.30.0160.00817.21
7.1.20.0130.00917.25
7.1.10.0130.00815.09
7.1.00.0130.00815.06
7.0.330.0130.00714.75
7.0.320.0180.00714.83
7.0.310.0170.00714.80
7.0.300.0130.00714.77
7.0.290.0120.00814.80
7.0.280.0130.00814.79
7.0.270.0140.00914.95
7.0.260.0160.00814.95
7.0.250.0150.00814.95
7.0.240.0190.00915.00
7.0.230.0150.00914.95
7.0.220.0160.00914.94
7.0.210.0140.00714.81
7.0.200.0160.00714.79
7.0.190.0140.00814.80
7.0.180.0170.00714.79
7.0.170.0140.00714.83
7.0.160.0160.00714.75
7.0.150.0130.00814.75
7.0.140.0150.00714.82
7.0.130.0160.00714.88
7.0.120.0160.00814.87
7.0.110.0140.00814.80
7.0.100.0130.00814.79
7.0.90.0230.00814.80
7.0.80.0140.00814.81
7.0.70.0140.00714.75
7.0.60.0160.00614.76
7.0.50.0150.00614.81
7.0.40.0150.00714.84
7.0.30.0120.00914.87
7.0.20.0130.00714.84
7.0.10.0140.00714.83
7.0.00.0140.00714.84
5.6.400.0120.00915.06
5.6.390.0130.00815.01
5.6.380.0120.01015.10
5.6.370.0130.00915.03
5.6.360.0150.00715.05
5.6.350.0160.00815.04
5.6.340.0130.00915.07
5.6.330.0140.00815.04
5.6.320.0140.00815.03
5.6.310.0140.00915.06
5.6.300.0140.01515.72
5.6.290.0140.01615.77
5.6.280.0150.01515.76
5.6.270.0130.01615.72
5.6.260.0140.01715.73
5.6.250.0140.01615.76
5.6.240.0150.01515.78
5.6.230.0140.01615.80
5.6.220.0140.01615.80
5.6.210.0160.01415.76
5.6.200.0140.01515.81
5.6.190.0150.01615.76
5.6.180.0150.01515.81
5.6.170.0140.01515.78
5.6.160.0130.01615.80
5.6.150.0150.01515.75
5.6.140.0130.01515.84
5.6.130.0130.01515.83
5.6.120.0130.01615.80
5.6.110.0140.01515.81
5.6.100.0140.01615.81
5.6.90.0140.01515.74
5.6.80.0130.01615.63
5.6.70.0120.01515.65
5.6.60.0130.01515.65
5.6.50.0140.01515.58
5.6.40.0130.01515.63
5.6.30.0140.01615.63
5.6.20.0120.01715.67
5.6.10.0120.01615.64
5.6.00.0130.01615.57
5.5.380.0130.01515.40
5.5.370.0140.01415.37
5.5.360.0150.01515.36
5.5.350.0130.01515.32
5.5.340.0130.01615.34
5.5.330.0150.01515.44
5.5.320.0140.01515.44
5.5.310.0160.01415.34
5.5.300.0140.01615.35
5.5.290.0140.01615.39
5.5.280.0150.01615.36
5.5.270.0140.01615.37
5.5.260.0150.01415.32
5.5.250.0140.01515.35
5.5.240.0140.01515.31
5.5.230.0130.01415.28
5.5.220.0120.01615.27
5.5.210.0130.01515.31
5.5.200.0130.01415.22
5.5.190.0140.01315.22
5.5.180.0140.01515.24
5.5.170.0110.00914.89
5.5.160.0130.01515.21
5.5.150.0140.01515.25
5.5.140.0140.01715.20
5.5.130.0140.01515.18
5.5.120.0120.01615.16
5.5.110.0130.01615.17
5.5.100.0130.01615.24
5.5.90.0120.01615.21
5.5.80.0120.01615.22
5.5.70.0140.01415.26
5.5.60.0120.01715.24
5.5.50.0130.01415.19
5.5.40.0140.01415.27
5.5.30.0120.01615.26
5.5.20.0120.01615.26
5.5.10.0130.01515.21
5.5.00.0130.01515.17
5.4.450.0110.01413.04
5.4.440.0110.01313.04
5.4.430.0100.01413.06
5.4.420.0120.01213.01
5.4.410.0130.01113.06
5.4.400.0100.01412.97
5.4.390.0110.01313.02
5.4.380.0100.01312.95
5.4.370.0110.01312.94
5.4.360.0110.01412.97
5.4.350.0110.01212.91
5.4.340.0110.01312.92
5.4.330.0100.00612.10
5.4.320.0120.01212.99
5.4.310.0120.01212.96
5.4.300.0110.01312.93
5.4.290.0110.01212.92
5.4.280.0110.01312.96
5.4.270.0110.01312.98
5.4.260.0110.01212.95
5.4.250.0110.01412.95
5.4.240.0110.01312.94
5.4.230.0130.01112.90
5.4.220.0130.01112.91
5.4.210.0130.01212.89
5.4.200.0100.01312.84
5.4.190.0130.01212.85
5.4.180.0110.01512.88
5.4.170.0110.01212.87
5.4.160.0110.01112.90
5.4.150.0110.01312.86
5.4.140.0110.01312.66
5.4.130.0100.01212.66
5.4.120.0110.01112.63
5.4.110.0110.01112.72
5.4.100.0090.01312.67
5.4.90.0110.01212.60
5.4.80.0100.01312.68
5.4.70.0110.01312.69
5.4.60.0100.01412.68
5.4.50.0120.01312.68
5.4.40.0100.01212.70
5.4.30.0100.01212.68
5.4.20.0100.01312.72
5.4.10.0110.01212.67
5.4.00.0110.01212.57
5.3.290.0100.01412.60
5.3.280.0100.01412.55
5.3.270.0110.01312.65
5.3.260.0110.01412.66
5.3.250.0100.01512.62
5.3.240.0110.01312.54
5.3.230.0100.01212.58
5.3.220.0110.01212.50
5.3.210.0100.01612.47
5.3.200.0100.01412.48
5.3.190.0110.01112.55
5.3.180.0080.01412.63
5.3.170.0110.01212.63
5.3.160.0110.01312.65
5.3.150.0120.01212.63
5.3.140.0110.01312.55
5.3.130.0110.01312.56
5.3.120.0100.01412.56
5.3.110.0120.01212.57
5.3.100.0090.01412.44
5.3.90.0110.01312.46
5.3.80.0100.01312.38
5.3.70.0110.01112.34
5.3.60.0110.01312.47
5.3.50.0100.01412.40
5.3.40.0110.01212.41
5.3.30.0100.01412.44
5.3.20.0110.01212.38
5.3.10.0110.01212.22
5.3.00.0110.01112.28

preferences:
73.93 ms | 400 KiB | 5 Q