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('1'=>array("A1"=>123,"B1"=>1234,"C2"=>array(123,456,789))); $d = array('1'=>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.0040.01118.18
8.3.50.0210.00921.21
8.3.40.0070.01418.70
8.3.30.0140.00020.17
8.3.20.0070.00720.33
8.3.10.0030.00621.83
8.3.00.0070.00722.43
8.2.180.0000.01816.48
8.2.170.0070.01422.96
8.2.160.0080.00522.21
8.2.150.0070.01124.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00320.88
8.2.110.0040.00422.07
8.2.100.0070.00417.72
8.2.90.0050.00319.00
8.2.80.0050.00219.16
8.2.70.0040.00417.63
8.2.60.0080.00018.05
8.2.50.0070.00318.07
8.2.40.0000.00919.95
8.2.30.0000.00719.50
8.2.20.0000.00717.63
8.2.10.0050.00317.68
8.2.00.0030.00617.62
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0090.00023.91
8.1.230.0080.00419.04
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.28
8.1.180.0040.00419.01
8.1.170.0000.00918.30
8.1.160.0000.00718.74
8.1.150.0000.00718.54
8.1.140.0040.00417.32
8.1.130.0000.00717.73
8.1.120.0030.00317.35
8.1.110.0060.00317.34
8.1.100.0030.00717.41
8.1.90.0070.00317.30
8.1.80.0080.00017.36
8.1.70.0040.00417.29
8.1.60.0030.00517.57
8.1.50.0060.00317.36
8.1.40.0000.00817.42
8.1.30.0050.00217.57
8.1.20.0040.00417.61
8.1.10.0040.00417.47
8.1.00.0000.00717.38
8.0.300.0030.00618.77
8.0.290.0040.00417.05
8.0.280.0080.00018.36
8.0.270.0040.00416.80
8.0.260.0030.00316.80
8.0.250.0060.00016.80
8.0.240.0070.00016.80
8.0.230.0040.00416.77
8.0.220.0030.00316.83
8.0.210.0000.00716.82
8.0.200.0000.00716.93
8.0.190.0000.01016.85
8.0.180.0080.00016.84
8.0.170.0060.00316.77
8.0.160.0040.00316.70
8.0.150.0030.00316.76
8.0.140.0040.00416.76
8.0.130.0000.00613.21
8.0.120.0040.00416.81
8.0.110.0000.00816.73
8.0.100.0030.00516.77
8.0.90.0030.00316.72
8.0.80.0070.01116.71
8.0.70.0040.00416.64
8.0.60.0050.00316.64
8.0.50.0040.00416.70
8.0.30.0100.00817.06
8.0.20.0090.00917.40
8.0.10.0030.00416.97
8.0.00.0080.01016.89
7.4.330.0000.00515.09
7.4.320.0070.00016.53
7.4.300.0000.00616.43
7.4.290.0040.00416.52
7.4.280.0000.00716.52
7.4.270.0030.00316.43
7.4.260.0070.00013.21
7.4.250.0000.00716.51
7.4.240.0000.00716.42
7.4.230.0040.00416.55
7.4.220.0060.00916.48
7.4.210.0040.01016.53
7.4.200.0070.00016.63
7.4.190.0030.00316.39
7.4.160.0090.00616.49
7.4.150.0110.00717.40
7.4.140.0140.00417.86
7.4.130.0070.01116.48
7.4.120.0090.00816.44
7.4.110.0130.00316.51
7.4.100.0120.00916.47
7.4.90.0090.00916.55
7.4.80.0090.00919.39
7.4.70.0170.00016.43
7.4.60.0120.00616.29
7.4.50.0040.00416.41
7.4.40.0130.00322.77
7.4.30.0070.01316.27
7.4.00.0070.01115.09
7.3.330.0000.00712.95
7.3.320.0030.00312.86
7.3.310.0030.00515.96
7.3.300.0000.00716.20
7.3.290.0100.01016.13
7.3.280.0140.00616.19
7.3.270.0090.00917.40
7.3.260.0140.00716.57
7.3.250.0120.00716.37
7.3.240.0130.00316.34
7.3.230.0170.00016.45
7.3.210.0100.01316.24
7.3.200.0060.01219.39
7.3.190.0100.00616.45
7.3.180.0040.01216.29
7.3.170.0120.00316.27
7.3.160.0060.01116.24
7.3.120.0090.00814.72
7.3.110.0130.00614.93
7.3.100.0070.01014.74
7.3.90.0030.01314.84
7.3.80.0040.01114.64
7.3.70.0060.00614.64
7.3.60.0040.01114.72
7.3.50.0100.00314.49
7.3.40.0060.00614.49
7.3.30.0030.00714.77
7.3.20.0090.00916.60
7.3.10.0090.00916.58
7.3.00.0070.00316.66
7.2.330.0100.01216.71
7.2.320.0060.01516.29
7.2.310.0110.01116.75
7.2.300.0100.00716.39
7.2.290.0030.01616.60
7.2.250.0080.01214.75
7.2.240.0060.00914.80
7.2.230.0070.01015.07
7.2.220.0100.00614.65
7.2.210.0030.01314.99
7.2.200.0040.00815.10
7.2.190.0030.00915.06
7.2.180.0000.01414.93
7.2.170.0100.00615.06
7.2.80.0090.00616.44
7.2.00.0060.00619.00
7.1.330.0000.01515.79
7.1.320.0070.00315.80
7.1.310.0070.00715.86
7.1.300.0130.00015.88
7.1.290.0000.00915.72
7.1.280.0090.00615.56
7.1.270.0000.01415.52
7.1.260.0120.00615.41
7.1.200.0090.00315.49
7.1.100.0000.01118.16
7.1.70.0150.00716.81
7.1.60.0150.00919.32
7.1.50.0140.01116.97
7.1.00.0000.03722.41
7.0.200.0030.00616.76
7.0.140.0070.07022.08
7.0.80.0200.04319.89
7.0.70.0570.07319.96
7.0.60.0430.06720.06
7.0.50.0400.04020.26
7.0.40.0030.09020.13
7.0.30.0130.07720.13
7.0.20.0070.07320.04
7.0.10.0070.03320.14
7.0.00.0030.08020.17
5.6.280.0000.07720.81
5.6.230.0000.04020.50
5.6.220.0070.03720.62
5.6.210.0030.07720.47
5.6.200.0070.06721.08
5.6.190.0030.04721.07
5.6.180.0000.04721.11
5.6.170.0030.06721.16
5.6.160.0070.03320.93
5.6.150.0070.08721.05
5.6.140.0030.07020.96
5.6.130.0030.06021.04
5.6.120.0070.07721.04
5.6.110.0000.08721.06
5.6.100.0070.04021.09
5.6.90.0030.04321.04
5.6.80.0100.03320.46
5.6.70.0030.04020.42
5.6.60.0030.04020.37
5.6.50.0000.04320.40
5.6.40.0100.03720.38
5.6.30.0100.03320.46
5.6.20.0000.04720.30
5.6.10.0000.04320.32
5.6.00.0030.04020.27
5.5.370.0130.07320.45
5.5.360.0070.06020.48
5.5.350.0000.04720.45
5.5.340.0070.03720.77
5.5.330.0100.06320.88
5.5.320.0030.04720.77
5.5.310.0000.04720.77
5.5.300.0100.08020.63
5.5.290.0070.06320.75
5.5.280.0100.07320.73
5.5.270.0100.06720.72
5.5.260.0000.04720.86
5.5.250.0000.04320.59
5.5.240.0000.04020.24
5.5.230.0030.04020.23
5.5.220.0070.03020.14
5.5.210.0000.04320.11
5.5.200.0030.03320.23
5.5.190.0030.03319.98
5.5.180.0030.04020.27
5.5.160.0130.03020.10
5.5.150.0030.03320.07
5.5.140.0030.03320.21
5.5.130.0030.04020.20
5.5.120.0030.03320.10
5.5.110.0000.03720.26
5.5.100.0030.03320.11
5.5.90.0000.03719.97
5.5.80.0100.02320.04
5.5.70.0070.03020.04
5.5.60.0070.03020.14
5.5.50.0070.03320.08
5.5.40.0000.04020.03
5.5.30.0070.03020.07
5.5.20.0170.02020.11
5.5.10.0000.04020.03
5.5.00.0030.03320.00
5.4.450.0030.04019.20
5.4.440.0030.04719.48
5.4.430.0070.07319.23
5.4.420.0100.03319.35
5.4.410.0130.02719.40
5.4.400.0000.04318.91
5.4.390.0100.03319.14
5.4.380.0100.05719.04
5.4.370.0070.03718.87
5.4.360.0000.03718.95
5.4.350.0070.03719.04
5.4.340.0030.03319.16
5.4.320.0100.03018.85
5.4.310.0100.02719.03
5.4.300.0100.03019.02
5.4.290.0000.03319.18
5.4.280.0070.03719.16
5.4.270.0000.03719.04
5.4.260.0000.03319.22
5.4.250.0030.03319.02
5.4.240.0070.02719.20
5.4.230.0000.03318.90
5.4.220.0000.04719.22
5.4.210.0030.03018.91
5.4.200.0030.03019.02
5.4.190.0070.03018.86
5.4.180.0000.03319.12
5.4.170.0000.03319.20
5.4.160.0100.02319.02
5.4.150.0030.04018.85
5.4.140.0030.03016.36
5.4.130.0030.02716.36
5.4.120.0030.03016.36
5.4.110.0030.07716.34
5.4.100.0070.06016.46
5.4.90.0030.03016.38
5.4.80.0000.03316.46
5.4.70.0100.07016.49
5.4.60.0030.06316.48
5.4.50.0070.03016.45
5.4.40.0030.03716.46
5.4.30.0070.06716.29
5.4.20.0000.03716.38
5.4.10.0030.06316.31
5.4.00.0030.07015.80
5.3.290.0000.03314.82
5.3.280.0030.03014.82
5.3.270.0000.04014.82
5.3.260.0070.03314.82
5.3.250.0130.02014.82
5.3.240.0070.03014.82
5.3.230.0000.04014.82
5.3.220.0030.03014.82
5.3.210.0070.06014.82
5.3.200.0070.03014.82
5.3.190.0030.08014.82
5.3.180.0070.02714.82
5.3.170.0070.06714.82
5.3.160.0030.07314.82
5.3.150.0070.03014.82
5.3.140.0030.07314.82
5.3.130.0030.04714.82
5.3.120.0000.04014.82
5.3.110.0070.07314.82
5.3.100.0070.07714.82
5.3.90.0000.04014.82
5.3.80.0030.03714.82
5.3.70.0070.07314.82
5.3.60.0000.06014.82
5.3.50.0030.05014.82
5.3.40.0130.06014.82
5.3.30.0030.03714.82
5.3.20.0030.07014.82
5.3.10.0030.04314.82
5.3.00.0070.06314.82
5.2.170.0000.03714.82
5.2.160.0000.02714.82
5.2.150.0070.05014.82
5.2.140.0030.04314.82
5.2.130.0030.02314.82
5.2.120.0100.05014.82
5.2.110.0030.03014.82
5.2.100.0030.05314.82
5.2.90.0030.03714.82
5.2.80.0000.02714.82
5.2.70.0030.04714.82
5.2.60.0030.06314.82
5.2.50.0100.05714.82
5.2.40.0070.03014.82
5.2.30.0000.02714.82
5.2.20.0030.02314.82
5.2.10.0070.04714.82
5.2.00.0070.02014.82
5.1.60.0100.05014.82
5.1.50.0030.04714.82
5.1.40.0000.03314.82
5.1.30.0030.02314.82
5.1.20.0070.04314.82
5.1.10.0070.03014.82
5.1.00.0030.05314.82
5.0.50.0000.02014.82
5.0.40.0070.03714.82
5.0.30.0030.05014.82
5.0.20.0030.01314.82
5.0.10.0070.03714.82
5.0.00.0030.04314.82
4.4.90.0030.01714.82
4.4.80.0000.02314.82
4.4.70.0000.01314.82
4.4.60.0000.02014.82
4.4.50.0100.03014.82
4.4.40.0000.03714.82
4.4.30.0000.03314.82
4.4.20.0030.02314.82
4.4.10.0030.03314.82
4.4.00.0070.05314.82
4.3.110.0100.02714.82
4.3.100.0030.02314.82
4.3.90.0000.01314.82
4.3.80.0070.04714.82
4.3.70.0000.03714.82
4.3.60.0000.01314.82
4.3.50.0030.03314.82
4.3.40.0030.04014.82
4.3.30.0000.02714.82
4.3.20.0000.03714.82
4.3.10.0000.02714.82
4.3.00.0030.01714.82

preferences:
44.59 ms | 401 KiB | 5 Q