3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* hey, i'm trying to get: Array[1] = Array ( [A1] => 123 [B1] => 1234 [C2] => Array ( [0] => 123 [1] => 456 [2] => 789 ) [R2] => Array ( [0] => 1 [1] => 4 [2] => 4 [3] => 6 ) ) */ $c = array('string'=>array("A1"=>123,"B1"=>1234,"C2"=>array(123,456,789))); $d = array('string'=>array("R2"=>array(1,4,4,6))); echo "<h1>now what</h1>"; $y = array_merge_recursive($d,$c); print_r($y);

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.18
8.3.50.0090.00821.08
8.3.40.0110.00418.71
8.3.30.0100.00720.35
8.3.20.0040.00420.29
8.3.10.0070.00022.15
8.3.00.0040.00422.57
8.2.180.0070.01516.50
8.2.170.0150.00622.96
8.2.160.0110.01122.10
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0020.00526.16
8.2.120.0080.00020.61
8.2.110.0030.00622.15
8.2.100.0080.00417.72
8.2.90.0040.00419.27
8.2.80.0040.00419.34
8.2.70.0040.00417.50
8.2.60.0060.00617.54
8.2.50.0040.00418.07
8.2.40.0050.00318.09
8.2.30.0000.00819.39
8.2.20.0040.00417.57
8.2.10.0030.00517.73
8.2.00.0060.00317.68
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00523.91
8.1.230.0120.00019.16
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.29
8.1.180.0030.00518.88
8.1.170.0000.00818.56
8.1.160.0060.00318.75
8.1.150.0020.00518.48
8.1.140.0000.00817.30
8.1.130.0000.00717.84
8.1.120.0000.00717.43
8.1.110.0000.00717.30
8.1.100.0020.00517.48
8.1.90.0070.00017.42
8.1.80.0030.00317.29
8.1.70.0000.00717.34
8.1.60.0030.00517.57
8.1.50.0040.00417.45
8.1.40.0080.00017.45
8.1.30.0040.00417.44
8.1.20.0030.00617.63
8.1.10.0060.00317.50
8.1.00.0040.00417.42
8.0.300.0080.00018.77
8.0.290.0040.00417.18
8.0.280.0070.00018.44
8.0.270.0030.00317.30
8.0.260.0000.00816.77
8.0.250.0060.00016.83
8.0.240.0060.00316.80
8.0.230.0030.00316.89
8.0.220.0000.00716.82
8.0.210.0070.00016.69
8.0.200.0070.00016.76
8.0.190.0030.00316.85
8.0.180.0070.00016.68
8.0.170.0060.00316.83
8.0.160.0000.00716.82
8.0.150.0040.00416.80
8.0.140.0000.00716.83
8.0.130.0000.00613.29
8.0.120.0060.00316.71
8.0.110.0020.00516.76
8.0.100.0040.00416.65
8.0.90.0040.00416.72
8.0.80.0150.00016.76
8.0.70.0000.00716.84
8.0.60.0070.00016.69
8.0.50.0040.00416.66
8.0.30.0110.00817.06
8.0.20.0100.00817.40
8.0.10.0040.00416.83
8.0.00.0110.01116.81
7.4.330.0050.00015.09
7.4.320.0030.00316.52
7.4.300.0030.00316.51
7.4.290.0030.00316.43
7.4.280.0030.00316.33
7.4.270.0060.00316.56
7.4.260.0050.00013.10
7.4.250.0000.00716.55
7.4.240.0020.00516.48
7.4.230.0030.00316.45
7.4.220.0070.01416.43
7.4.210.0060.00816.56
7.4.200.0050.00316.43
7.4.190.0040.00416.61
7.4.160.0160.00716.24
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0080.00816.52
7.4.120.0110.00916.45
7.4.110.0110.00716.53
7.4.100.0120.00616.61
7.4.90.0120.00416.53
7.4.80.0090.00819.39
7.4.70.0030.01316.50
7.4.60.0080.00816.25
7.4.50.0060.00316.30
7.4.40.0030.01222.77
7.4.30.0120.00916.49
7.4.00.0030.01014.61
7.3.330.0000.00512.89
7.3.320.0020.00212.95
7.3.310.0070.00015.99
7.3.300.0030.00316.14
7.3.290.0070.01016.19
7.3.280.0070.00916.13
7.3.270.0170.00017.40
7.3.260.0140.00316.14
7.3.250.0040.01616.39
7.3.240.0070.01016.16
7.3.230.0090.01116.39
7.3.210.0130.01016.17
7.3.200.0130.00319.39
7.3.190.0070.01016.45
7.3.180.0130.00716.52
7.3.170.0000.01516.27
7.3.160.0040.01116.33
7.3.120.0040.01114.88
7.2.330.0120.00416.48
7.2.320.0160.00616.46
7.2.310.0160.00716.43
7.2.300.0100.01016.46
7.2.290.0150.00616.39
7.2.110.0160.00316.42
7.2.100.0110.00416.59
7.2.90.0170.00316.46
7.2.80.0110.00516.50
7.2.70.0060.01016.78
7.2.60.0080.00816.56
7.2.50.0120.00616.91
7.2.40.0090.00916.93
7.2.30.0090.00916.78
7.2.20.0130.00916.87
7.2.10.0200.00016.64
7.2.00.0100.01016.92
7.1.230.0980.01015.75
7.1.220.0110.00615.68
7.1.210.0420.00715.77
7.1.200.0090.00415.78
7.1.190.0130.00515.77
7.1.180.0060.01015.78
7.1.170.0280.00615.82
7.1.160.0110.00315.75
7.1.150.0100.00315.66
7.1.140.0130.00315.82
7.1.130.0100.00515.54
7.1.120.0430.01015.74
7.1.110.0080.00515.68
7.1.100.0140.00315.58
7.1.90.0100.00715.84
7.1.80.0090.00915.65
7.1.70.0080.00416.49
7.1.60.0080.00817.46
7.1.50.0140.00916.36
7.1.40.0120.00915.51
7.1.30.0070.01115.55
7.1.20.0130.00815.91
7.1.10.0150.00015.78
7.1.00.0090.01719.01
7.0.310.0250.00715.38
7.0.300.0030.01415.47
7.0.290.0160.00715.32
7.0.280.0120.00315.45
7.0.270.0090.00615.55
7.0.260.0070.00715.38
7.0.250.0120.00315.54
7.0.240.0140.00315.30
7.0.230.0050.00815.57
7.0.220.0130.00515.38
7.0.210.0140.00415.51
7.0.200.0080.00316.06
7.0.190.0500.00415.18
7.0.180.0150.00615.38
7.0.170.0080.00415.48
7.0.160.0120.00415.36
7.0.150.0120.00315.09
7.0.140.0120.03418.63
7.0.130.0180.00315.29
7.0.120.0120.00615.25
7.0.110.0070.00715.11
7.0.100.0400.04717.54
7.0.90.0200.04317.66
7.0.80.0220.02517.52
7.0.70.0240.04217.65
7.0.60.0200.03717.68
7.0.50.0080.03217.79
7.0.40.0070.04216.79
7.0.30.0080.03316.74
7.0.20.0120.02516.81
7.0.10.0050.02516.84
7.0.00.0080.04016.75
5.6.380.0130.00314.27
5.6.370.0100.00714.21
5.6.360.0130.00814.43
5.6.350.0090.00914.28
5.6.340.0080.00814.45
5.6.330.0130.00314.58
5.6.320.0080.00814.68
5.6.310.0110.00714.27
5.6.300.0140.00014.35
5.6.290.0050.01014.55
5.6.280.0050.04217.55
5.6.270.0100.00713.96
5.6.260.0070.00714.35
5.6.250.0060.02117.38
5.6.240.0130.04017.46
5.6.230.0080.04317.61
5.6.220.0070.03517.45
5.6.210.0130.03717.58
5.6.200.0090.03317.62
5.6.190.0080.02517.57
5.6.180.0000.03117.69
5.6.170.0110.02417.85
5.6.160.0070.04317.53
5.6.150.0130.01817.68
5.6.140.0090.02317.60
5.6.130.0070.02517.80
5.6.120.0030.02917.70
5.6.110.0080.02317.63
5.6.100.0070.02017.64
5.6.90.0110.02317.68
5.6.80.0050.02517.37
5.6.70.0050.02617.28
5.6.60.0040.02417.26
5.6.50.0110.03417.44
5.6.40.0100.02517.39
5.6.30.0110.04117.26
5.6.20.0040.04517.23
5.6.10.0090.04017.18
5.6.00.0070.04317.28
5.5.380.0090.03816.59
5.5.370.0080.04516.67
5.5.360.0140.03716.59
5.5.350.0040.04616.56
5.5.340.0100.02516.83
5.5.330.0080.02216.82
5.5.320.0050.03016.85
5.5.310.0070.03516.83
5.5.300.0050.03016.82
5.5.290.0070.02316.71
5.5.280.0070.02316.83
5.5.270.0080.02116.79
5.5.260.0050.02216.85
5.5.250.0060.02616.74
5.5.240.0070.02716.50
5.5.230.0080.02316.50
5.5.220.0050.02116.46
5.5.210.0080.01816.52
5.5.200.0050.02516.46
5.5.190.0140.04016.52
5.5.180.0060.04516.46
5.5.170.0120.00414.20
5.5.160.0100.03816.51
5.5.150.0110.03816.47
5.5.140.0110.04316.46
5.5.130.0120.03716.47
5.5.120.0110.03716.47
5.5.110.0070.04316.52
5.5.100.0110.04016.43
5.5.90.0070.04216.41
5.5.80.0110.04016.44
5.5.70.0070.03816.42
5.5.60.0070.04016.40
5.5.50.0080.03816.42
5.5.40.0060.03916.42
5.5.30.0060.02316.46
5.5.20.0070.04516.39
5.5.10.0110.03316.46
5.5.00.0120.03716.37
5.4.450.0060.02216.00
5.4.440.0050.02316.10
5.4.430.0070.02116.17
5.4.420.0140.03516.13
5.4.410.0080.01915.93
5.4.400.0070.02015.84
5.4.390.0080.01715.91
5.4.380.0040.02416.00
5.4.370.0040.02415.87
5.4.360.0040.03016.02
5.4.350.0050.02315.87
5.4.340.0120.03215.92
5.4.330.0110.00312.79
5.4.320.0050.04015.83
5.4.310.0120.03715.97
5.4.300.0070.04016.00
5.4.290.0090.03915.92
5.4.280.0100.03815.96
5.4.270.0050.03515.96
5.4.260.0080.04115.96
5.4.250.0090.03715.99
5.4.240.0130.03515.99
5.4.230.0070.04115.96
5.4.220.0120.03415.87
5.4.210.0080.03715.96
5.4.200.0090.04015.82
5.4.190.0080.04116.01
5.4.180.0060.04315.82
5.4.170.0090.01815.96
5.4.160.0080.04215.93
5.4.150.0100.03015.95
5.4.140.0050.02814.46
5.4.130.0090.03714.53
5.4.120.0070.04014.58
5.4.110.0090.03414.61
5.4.100.0120.03614.59
5.4.90.0050.04214.59
5.4.80.0070.03914.58
5.4.70.0070.04314.62
5.4.60.0040.02714.62
5.4.50.0100.03514.52
5.4.40.0060.03314.62
5.4.30.0100.03214.59
5.4.20.0150.03314.61
5.4.10.0040.04414.55
5.4.00.0050.04014.33
5.3.290.0150.03313.79
5.3.280.0180.03113.68
5.3.270.0070.03813.75
5.3.260.0110.03613.76
5.3.250.0080.03513.68
5.3.240.0070.04013.74
5.3.230.0080.04013.69
5.3.220.0100.03513.69
5.3.210.0070.04313.68
5.3.200.0120.02513.73
5.3.190.0040.04013.67
5.3.180.0040.04813.66
5.3.170.0080.03413.75
5.3.160.0090.03813.67
5.3.150.0070.02213.72
5.3.140.0020.04613.68
5.3.130.0070.04013.65
5.3.120.0060.04113.68
5.3.110.0070.03913.63
5.3.100.0080.03813.39
5.3.90.0060.03613.38
5.3.80.0100.03913.41
5.3.70.0080.03813.39
5.3.60.0050.03213.40
5.3.50.0070.03813.43
5.3.40.0130.03313.32
5.3.30.0060.02813.36
5.3.20.0070.03913.19
5.3.10.0080.03913.18
5.3.00.0100.03313.24
5.2.170.0030.03611.97
5.2.160.0070.03212.02
5.2.150.0070.03211.99
5.2.140.0070.03211.99
5.2.130.0060.02811.88
5.2.120.0090.02811.91
5.2.110.0050.03311.97
5.2.100.0070.03311.88
5.2.90.0050.03011.90
5.2.80.0070.02011.90
5.2.70.0050.03511.96
5.2.60.0030.03211.85
5.2.50.0040.03011.93
5.2.40.0060.03311.92
5.2.30.0050.02911.83
5.2.20.0060.03311.92
5.2.10.0070.03111.82
5.2.00.0040.03111.72
5.1.60.0070.02511.31
5.1.50.0050.02811.43
5.1.40.0030.03111.30
5.1.30.0060.03011.49
5.1.20.0050.03211.56
5.1.10.0070.02711.46
5.1.00.0000.03511.47
5.0.50.0030.02511.29
5.0.40.0000.02511.29
5.0.30.0080.03011.29
5.0.20.0020.02611.29
5.0.10.0060.02411.29
5.0.00.0120.02711.29
4.4.90.0030.01811.29
4.4.80.0020.01811.29
4.4.70.0050.01811.29
4.4.60.0050.01811.29
4.4.50.0030.01711.29
4.4.40.0060.02811.29
4.4.30.0050.01711.29
4.4.20.0020.02111.29
4.4.10.0060.01611.29
4.4.00.0030.03011.29
4.3.110.0050.01711.29
4.3.100.0030.01911.29
4.3.90.0090.01311.29
4.3.80.0040.02811.29
4.3.70.0050.01111.29
4.3.60.0060.01711.29
4.3.50.0030.01811.29
4.3.40.0020.03011.29
4.3.30.0030.01711.29
4.3.20.0060.01711.29
4.3.10.0050.01911.29
4.3.00.0020.02011.29

preferences:
42.08 ms | 401 KiB | 5 Q