3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataA = array( array( 'type' => 'name', 'key' => 'keywords', 'content' => 'keywordA', ) ); $dataB = array( array( 'type' => 'name', 'key' => 'keywords', 'content' => 'keywordB', ) ); $fd1 = is_callable('array_replace_recursive')?array_replace_recursive($dataA, $dataB):null; $fd2 = $dataB + $dataA; var_dump( $fd1 == $fd2, $fd1, $fd2 );

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.0150.00718.43
8.3.60.0140.00416.60
8.3.50.0210.00817.31
8.3.40.0200.00318.57
8.3.30.0120.00418.63
8.3.20.0100.01018.82
8.3.10.0080.00018.53
8.3.00.0080.00019.13
8.2.180.0060.01216.50
8.2.170.0110.00322.96
8.2.160.0120.00318.79
8.2.150.0090.00024.18
8.2.140.0090.00624.66
8.2.130.0110.00726.16
8.2.120.0100.01020.83
8.2.110.0050.00520.77
8.2.100.0110.00017.84
8.2.90.0000.00817.75
8.2.80.0060.00318.78
8.2.70.0050.00317.63
8.2.60.0040.00417.63
8.2.50.0040.00418.05
8.2.40.0040.00418.16
8.2.30.0040.00417.85
8.2.20.0040.00717.66
8.2.10.0080.00017.67
8.2.00.0000.00917.74
8.1.280.0070.01425.92
8.1.270.0000.00724.66
8.1.260.0160.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00319.25
8.1.230.0110.00020.85
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0080.00317.35
8.1.180.0030.00718.10
8.1.170.0060.00318.59
8.1.160.0040.00418.76
8.1.150.0000.00818.70
8.1.140.0050.00217.39
8.1.130.0030.00317.66
8.1.120.0040.00417.50
8.1.110.0000.00717.40
8.1.100.0050.00217.47
8.1.90.0000.00817.41
8.1.80.0030.00517.53
8.1.70.0070.00017.34
8.1.60.0040.00417.60
8.1.50.0070.00017.40
8.1.40.0040.00417.55
8.1.30.0040.00417.51
8.1.20.0060.00317.64
8.1.10.0050.00217.45
8.1.00.0000.00917.41
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0070.00020.19
8.0.270.0000.00717.30
8.0.260.0040.00416.89
8.0.250.0030.00717.02
8.0.240.0030.00316.99
8.0.230.0030.00316.94
8.0.220.0000.00716.99
8.0.210.0030.00316.86
8.0.200.0030.00316.96
8.0.190.0070.00016.93
8.0.180.0090.00016.88
8.0.170.0000.00916.90
8.0.160.0000.00716.92
8.0.150.0000.00716.75
8.0.140.0070.00016.91
8.0.130.0030.00313.40
8.0.120.0060.00316.92
8.0.110.0040.00416.85
8.0.100.0030.00616.75
8.0.90.0040.00416.84
8.0.80.0000.01416.91
8.0.70.0040.00416.89
8.0.60.0000.00816.81
8.0.50.0040.00416.83
8.0.30.0090.00917.09
8.0.20.0100.00917.10
8.0.10.0050.00317.08
8.0.00.0100.01316.75
7.4.330.0000.00512.98
7.4.320.0030.00316.52
7.4.300.0040.00416.39
7.4.290.0070.00016.52
7.4.280.0070.00016.36
7.4.270.0030.00316.54
7.4.260.0030.00313.22
7.4.250.0070.00016.54
7.4.240.0030.00316.44
7.4.230.0000.00716.63
7.4.220.0140.00316.50
7.4.210.0130.00716.43
7.4.200.0030.00316.65
7.4.190.0000.00716.36
7.4.160.0130.00716.65
7.4.150.0110.00716.60
7.4.140.0030.01516.23
7.4.130.0100.01016.59
7.4.120.0090.00616.69
7.4.110.0090.01216.63
7.4.100.0070.01016.65
7.4.90.0090.00916.53
7.4.80.0130.00519.39
7.4.70.0060.01016.48
7.4.60.0090.00916.49
7.4.50.0000.00916.28
7.4.40.0110.00416.33
7.4.30.0080.00816.41
7.4.00.0080.01014.89
7.3.330.0030.00313.08
7.3.320.0020.00213.04
7.3.310.0070.00016.05
7.3.300.0000.00616.18
7.3.290.0070.00716.17
7.3.280.0080.01016.24
7.3.270.0140.00416.25
7.3.260.0060.01716.20
7.3.250.0080.00916.36
7.3.240.0070.01716.45
7.3.230.0090.01316.35
7.3.210.0130.00716.41
7.3.200.0090.01216.50
7.3.190.0030.01316.41
7.3.180.0140.00616.36
7.3.170.0070.01016.12
7.3.160.0090.01216.28
7.3.120.0050.00714.64
7.3.110.0060.01214.68
7.3.100.0120.00014.63
7.3.90.0040.00814.81
7.3.80.0060.00314.84
7.3.70.0120.00014.34
7.3.60.0070.00414.84
7.3.50.0060.00614.86
7.3.40.0080.00414.42
7.3.30.0060.00614.48
7.3.20.0090.00616.52
7.3.10.0030.00816.76
7.3.00.0110.00316.64
7.2.330.0130.00316.41
7.2.320.0100.00716.67
7.2.310.0100.01016.65
7.2.300.0100.00716.55
7.2.290.0090.01316.57
7.2.250.0060.01314.80
7.2.240.0080.00814.85
7.2.230.0030.01014.80
7.2.220.0090.00614.88
7.2.210.0100.00615.23
7.2.200.0040.00815.11
7.2.190.0030.00615.02
7.2.180.0060.01214.90
7.2.170.0000.01314.96
7.2.60.0040.01116.84
7.1.330.0130.00315.81
7.1.320.0070.00415.58
7.1.310.0030.01015.70
7.1.300.0040.00415.82
7.1.290.0100.00315.55
7.1.280.0030.00915.74
7.1.270.0090.00015.63
7.1.260.0030.00615.83
7.1.200.0030.00915.86
7.1.70.0000.00717.16
7.1.60.0040.02219.30
7.1.50.0040.01216.60
7.1.00.0000.07722.48
7.0.200.0160.00016.51
7.0.140.0000.07022.00
7.0.120.0000.08022.09
7.0.60.0100.08020.07
7.0.50.0000.08317.72
7.0.40.0000.04720.02
7.0.30.0500.05320.11
7.0.20.0300.08020.33
7.0.10.0000.04720.13
7.0.00.0130.07720.19
5.6.280.0100.06720.77
5.6.210.0100.07320.65
5.6.200.0100.06718.18
5.6.190.0100.04020.63
5.6.180.3930.04020.41
5.6.170.0170.04320.36
5.6.160.0130.03720.37
5.6.150.0070.04318.13
5.6.140.0030.04718.18
5.6.130.0070.08018.25
5.6.120.0130.07720.99
5.6.110.0070.07721.04
5.6.100.0100.03721.10
5.6.90.0100.06021.01
5.6.80.0070.07020.52
5.6.70.3530.04020.50
5.5.350.0300.07320.40
5.5.340.0170.04018.01
5.5.330.0100.04320.13
5.5.320.3400.04020.20
5.5.310.0300.03320.34
5.5.300.0030.05017.98
5.5.290.0100.07717.87
5.5.280.0100.07320.77
5.5.270.0100.05720.94
5.5.260.0030.04020.64
5.5.250.0030.08320.61
5.5.240.0330.06720.14
5.4.450.0170.07019.12
5.4.440.0000.05319.46
5.4.430.0000.08319.46
5.4.420.0070.04319.32
5.4.410.0030.06319.38
5.4.400.0100.07319.16
5.4.390.0070.06018.79
5.4.380.0130.03319.12
5.4.370.0030.07019.12
5.4.360.0100.05019.19
5.4.350.0030.07319.14
5.4.340.0100.07319.14
5.4.320.0100.05718.92
5.4.310.0070.08018.79
5.4.300.0130.07019.14
5.4.290.0070.07719.00
5.4.280.0100.06718.80
5.4.270.0030.05019.09
5.4.260.0030.06019.13
5.4.250.0130.03019.08
5.4.240.0070.05718.90
5.4.230.0000.04719.17
5.4.220.0100.06318.77
5.4.210.0000.04719.14
5.4.200.0170.05719.17
5.4.190.0100.04019.04
5.4.180.0100.04318.81
5.4.170.0070.03719.17
5.4.160.0100.03319.15
5.4.150.0070.06318.77
5.4.140.0100.06316.25
5.4.130.0030.05316.23
5.4.120.0070.06716.28
5.4.110.0000.04016.25
5.4.100.0070.06316.20
5.4.90.0030.03716.40
5.4.80.0070.04316.45
5.4.70.0070.05316.21
5.4.60.0030.07716.28
5.4.50.0070.06316.33
5.4.40.0130.06716.21
5.4.30.0230.02716.25
5.4.20.0100.03716.21
5.4.10.0000.04016.12
5.4.00.0100.05015.71
5.3.290.0030.04714.68
5.3.280.0170.04314.56
5.3.270.0000.04314.53
5.3.260.0000.04014.43
5.3.250.0000.04014.53
5.3.240.0030.07714.53
5.3.230.0000.05014.53
5.3.220.0070.05014.49
5.3.210.0070.07014.60
5.3.200.0000.04714.50
5.3.190.0100.07714.40
5.3.180.0070.03714.46
5.3.170.0070.04014.50
5.3.160.0030.05314.48
5.3.150.0070.04714.65
5.3.140.0000.05014.48
5.3.130.0070.04014.63
5.3.120.0000.05014.52
5.3.110.0030.03714.49
5.3.100.0070.07013.91
5.3.90.0100.07013.96
5.3.80.0030.06714.11
5.3.70.0100.07014.11
5.3.60.0100.06713.98
5.3.50.0030.05013.76
5.3.40.0130.06713.86
5.3.30.0100.04013.85
5.3.20.0100.04013.64
5.3.10.0130.04013.60
5.3.00.0100.04013.65
5.2.170.0100.06011.13
5.2.160.0070.05311.30
5.2.150.0030.05311.02
5.2.140.0030.05711.31
5.2.130.0030.03311.00
5.2.120.0030.03010.92
5.2.110.0070.06311.01
5.2.100.0030.03311.09
5.2.90.0070.05011.18
5.2.80.0000.04010.95
5.2.70.0000.04310.98
5.2.60.0070.02710.98
5.2.50.0000.03011.02
5.2.40.0070.04710.98
5.2.30.0070.04010.95
5.2.20.0000.03710.88
5.2.10.0030.03010.93
5.2.00.0100.03310.71
5.1.60.0000.03010.05
5.1.50.0100.04310.01
5.1.40.0000.04710.04
5.1.30.0000.04010.32
5.1.20.0070.05710.36
5.1.10.0030.05710.05
5.1.00.0030.05710.12
5.0.50.0030.0278.56
5.0.40.0030.0178.56
5.0.30.0000.0678.56
5.0.20.0030.0408.56
5.0.10.0000.0438.56
5.0.00.0000.0708.56
4.4.90.0070.0138.56
4.4.80.0030.0138.56
4.4.70.0000.0308.56
4.4.60.0000.0238.56
4.4.50.0000.0208.56
4.4.40.0000.0278.56
4.4.30.0170.0208.56
4.4.20.0000.0308.56
4.4.10.0070.0308.56
4.4.00.0030.0508.56
4.3.110.0030.0178.56
4.3.100.0030.0308.56
4.3.90.0000.0178.56
4.3.80.0000.0308.56
4.3.70.0070.0138.56
4.3.60.0030.0178.56
4.3.50.0030.0138.56
4.3.40.0030.0408.56
4.3.30.0030.0308.56
4.3.20.0000.0378.56
4.3.10.0000.0308.56
4.3.00.0000.0208.56

preferences:
47.09 ms | 401 KiB | 5 Q