3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 1 => array( 'test' => 3 ) ); $b = array( 1 => array( 'test2' => 3 ) ); $c = array_merge_recursive( $a, $b ); var_dump( $c );

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.4.20.0160.00317.76
8.4.10.0140.00717.39
8.3.140.0080.00016.26
8.3.130.0080.00018.25
8.3.120.0040.00818.88
8.3.110.0040.00420.94
8.3.100.0040.00416.36
8.3.90.0110.00418.43
8.3.80.0090.00018.18
8.3.70.0160.00616.38
8.3.60.0080.01218.11
8.3.50.0090.01121.02
8.3.40.0160.00318.71
8.3.30.0150.00018.32
8.3.20.0080.00018.53
8.3.10.0080.00021.81
8.3.00.0080.00017.64
8.2.260.0090.00920.81
8.2.250.0080.00016.70
8.2.240.0060.00316.93
8.2.230.0090.00022.58
8.2.220.0080.00437.54
8.2.210.0100.00326.77
8.2.200.0090.00018.26
8.2.190.0060.00918.41
8.2.180.0040.01116.38
8.2.170.0090.00619.01
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0100.00020.78
8.2.120.0050.00226.35
8.2.110.0080.00319.14
8.2.100.0040.00817.72
8.2.90.0040.00417.50
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00917.80
8.2.50.0060.00318.07
8.2.40.0050.00319.95
8.2.30.0000.00718.05
8.2.20.0050.00317.67
8.2.10.0040.00417.97
8.2.00.0070.00017.99
8.1.310.0090.00018.23
8.1.300.0000.01117.84
8.1.290.0000.00918.88
8.1.280.0070.00725.92
8.1.270.0070.00023.91
8.1.260.0030.00528.09
8.1.250.0020.00528.09
8.1.240.0030.00719.05
8.1.230.0090.00319.10
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.49
8.1.160.0000.00918.65
8.1.150.0000.00718.72
8.1.140.0000.00719.50
8.1.130.0040.00417.42
8.1.120.0070.00017.25
8.1.110.0000.00717.38
8.1.100.0000.00717.35
8.1.90.0040.00417.39
8.1.80.0000.00817.32
8.1.70.0000.00717.36
8.1.60.0040.00417.40
8.1.50.0040.00417.50
8.1.40.0030.00617.32
8.1.30.0000.00817.60
8.1.20.0040.00417.54
8.1.10.0140.00217.47
8.1.00.0050.00217.32
8.0.300.0040.00421.52
8.0.290.0040.00816.63
8.0.280.0030.00318.36
8.0.270.0000.00717.11
8.0.260.0000.00616.68
8.0.250.0000.00616.79
8.0.240.0040.00416.90
8.0.230.0000.00716.87
8.0.220.0030.00516.88
8.0.210.0000.00716.71
8.0.200.0070.00016.80
8.0.190.0040.00416.89
8.0.180.0000.00716.77
8.0.170.0070.00016.91
8.0.160.0070.00016.78
8.0.150.0030.00316.71
8.0.140.0040.00416.81
8.0.130.0000.00613.27
8.0.120.0000.00916.74
8.0.110.0040.00416.86
8.0.100.0000.00716.86
8.0.90.0050.00216.84
8.0.80.0000.01416.77
8.0.70.0000.00816.66
8.0.60.0040.00416.68
8.0.50.0000.00716.81
8.0.30.0090.00917.18
8.0.20.0130.00517.40
8.0.10.0050.00217.00
8.0.00.0090.01116.69
7.4.330.0000.00515.08
7.4.320.0040.00416.43
7.4.300.0040.00416.52
7.4.290.0000.00716.53
7.4.280.0050.00316.51
7.4.270.0030.00316.41
7.4.260.0030.00316.39
7.4.250.0000.00816.42
7.4.240.0030.00316.45
7.4.230.0030.00316.41
7.4.220.0100.00716.53
7.4.210.0060.01016.63
7.4.200.0080.00016.46
7.4.160.0110.00416.44
7.4.150.0150.00417.40
7.4.140.0120.00517.86
7.4.130.0100.01116.45
7.4.120.0090.01116.41
7.4.110.0110.00916.41
7.4.100.0080.00816.31
7.4.90.0000.01716.30
7.4.80.0160.00019.39
7.4.70.0100.01016.48
7.4.60.0040.01416.46
7.4.50.0090.00516.35
7.4.40.0080.00816.13
7.4.30.0080.00816.35
7.4.00.0070.00914.59
7.3.330.0000.00812.97
7.3.320.0000.00513.02
7.3.310.0000.00616.22
7.3.300.0000.00616.12
7.3.290.0030.00316.09
7.3.280.0070.01016.14
7.3.270.0120.00817.40
7.3.260.0120.00416.21
7.3.250.0150.00616.28
7.3.240.0070.01216.21
7.3.230.0130.00416.39
7.3.210.0060.01216.20
7.3.200.0120.00416.32
7.3.190.0050.01016.27
7.3.180.0070.01416.34
7.3.170.0110.00516.19
7.3.160.0070.01016.35
7.3.120.0130.00614.66
7.3.110.0140.00714.39
7.3.100.0100.00614.34
7.3.90.0040.01114.38
7.3.80.0030.01014.80
7.3.70.0090.00614.52
7.3.60.0070.00414.33
7.3.50.0060.00914.29
7.3.40.0040.00414.30
7.3.30.0000.01614.78
7.3.20.0100.00716.27
7.3.10.0030.00616.45
7.3.00.0080.00816.51
7.2.330.0160.00716.60
7.2.320.0090.00916.35
7.2.310.0110.01116.51
7.2.300.0120.00616.32
7.2.290.0120.00916.41
7.2.250.0090.00914.79
7.2.240.0130.00714.87
7.2.230.0060.00914.89
7.2.220.0100.00715.06
7.2.210.0100.00714.90
7.2.200.0030.01414.86
7.2.190.0030.01014.97
7.2.180.0000.00915.07
7.2.170.0070.00714.70
7.2.80.0000.01316.35
7.2.60.0000.01216.82
7.1.330.0090.00615.89
7.1.320.0100.00715.43
7.1.310.0080.00315.48
7.1.300.0110.00415.54
7.1.290.0040.00715.86
7.1.280.0060.00315.77
7.1.270.0070.00715.61
7.1.260.0040.00715.86
7.1.200.0030.00615.79
7.1.70.0030.00516.79
7.1.60.0080.00317.20
7.1.00.0000.08022.44
7.0.200.0070.00716.81
7.0.60.0100.07321.69
7.0.50.0170.07720.42
7.0.40.0230.05320.37
7.0.30.0030.06720.22
7.0.20.0170.05720.21
7.0.10.0230.06720.28
7.0.00.0330.06020.27
5.6.280.0070.07021.07
5.6.210.0130.07020.54
5.6.200.0300.05321.02
5.6.190.0170.06321.15
5.6.180.0170.05320.98
5.6.170.0170.06021.11
5.6.160.0500.04721.07
5.6.150.0270.08021.15
5.6.140.0200.05721.19
5.6.130.0100.06721.16
5.6.120.0270.06021.02
5.6.110.0330.06720.94
5.6.100.0430.06021.02
5.6.90.0230.05321.02
5.6.80.0130.06020.55
5.6.70.0200.05020.33
5.6.60.0200.05720.41
5.6.50.0230.06320.45
5.6.40.0200.06020.43
5.6.30.0170.06320.31
5.6.20.0270.04720.52
5.6.10.0200.06020.43
5.6.00.0200.05720.45
5.5.350.4230.03720.43
5.5.340.0200.05320.71
5.5.330.0130.06720.87
5.5.320.0130.06320.98
5.5.310.0170.06321.02
5.5.300.0200.05321.00
5.5.290.0170.06020.73
5.5.280.0270.05320.92
5.5.270.0200.06021.01
5.5.260.0370.04720.77
5.5.250.0170.06020.63
5.5.240.0070.06720.24
5.5.230.0330.04320.08
5.5.220.0200.06020.41
5.5.210.0270.05020.33
5.5.200.0230.05720.19
5.5.190.0270.07320.37
5.5.180.0170.06020.14
5.5.160.0270.05320.08
5.5.150.0170.05720.21
5.5.140.0270.05320.34
5.5.130.0200.05020.21
5.5.120.0170.06720.34
5.5.110.0270.05020.18
5.5.100.0300.04720.27
5.5.90.0100.06020.03
5.5.80.0170.05320.17
5.5.70.0170.05320.05
5.5.60.0230.04720.16
5.5.50.0300.05020.25
5.5.40.0130.05720.05
5.5.30.0130.05320.08
5.5.20.0230.04720.07
5.5.10.0270.04320.07
5.5.00.0070.06720.04

preferences:
73.43 ms | 403 KiB | 5 Q