3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1=array("a"=>"Horse","b"=>"Dog"); $a2=array("c"=>"Cow","b"=>"Cat"); print_r(array_merge($a1,$a2)); ?>

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.0030.01016.50
8.3.50.0100.00817.26
8.3.40.0080.00818.54
8.3.30.0070.00718.46
8.3.20.0050.00518.35
8.3.10.0090.00020.49
8.3.00.0080.00019.25
8.2.180.0120.00316.75
8.2.170.0100.00722.96
8.2.160.0100.00320.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00820.51
8.2.110.0090.00021.00
8.2.100.0070.00417.59
8.2.90.0000.00919.19
8.2.80.0040.00419.21
8.2.70.0030.00617.50
8.2.60.0030.00617.80
8.2.50.0030.00619.23
8.2.40.0000.00818.09
8.2.30.0110.00017.97
8.2.20.0090.00019.37
8.2.10.0000.00717.49
8.2.00.0060.00317.53
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0070.00320.55
8.1.230.0090.00320.97
8.1.220.0000.00817.74
8.1.210.0030.00618.85
8.1.200.0030.00617.10
8.1.190.0080.00017.40
8.1.180.0080.00018.10
8.1.170.0070.00018.66
8.1.160.0080.00018.85
8.1.150.0000.00818.57
8.1.140.0040.00417.48
8.1.130.0030.00317.84
8.1.120.0030.00617.32
8.1.110.0060.00317.30
8.1.100.0040.00417.37
8.1.90.0040.00417.29
8.1.80.0040.00317.39
8.1.70.0000.00617.41
8.1.60.0080.00017.48
8.1.50.0040.00417.32
8.1.40.0040.00417.39
8.1.30.0000.00717.46
8.1.20.0030.00517.45
8.1.10.0030.00517.42
8.1.00.0070.00017.21
8.0.300.0040.00419.90
8.0.290.0030.00616.63
8.0.280.0070.00018.44
8.0.270.0000.00717.10
8.0.260.0000.00816.73
8.0.250.0040.00416.82
8.0.240.0080.00416.80
8.0.230.0030.00316.92
8.0.220.0000.00716.69
8.0.210.0030.00416.81
8.0.200.0060.00016.77
8.0.190.0050.00316.90
8.0.180.0030.00516.84
8.0.170.0030.00516.75
8.0.160.0070.00016.84
8.0.150.0000.00816.67
8.0.140.0070.00016.79
8.0.130.0050.00013.30
8.0.120.0030.00616.68
8.0.110.0040.00416.62
8.0.100.0030.00616.69
8.0.90.0050.00316.69
8.0.80.0060.00916.81
8.0.70.0030.00416.70
8.0.60.0000.00716.93
8.0.50.0040.00416.69
8.0.30.0030.01617.04
8.0.20.0120.01016.87
8.0.10.0080.00016.96
8.0.00.0120.02416.75
7.4.330.0020.00212.89
7.4.320.0030.00316.52
7.4.300.0040.00416.35
7.4.290.0000.00716.58
7.4.280.0060.00316.50
7.4.270.0000.00716.43
7.4.260.0030.00313.20
7.4.250.0040.00416.51
7.4.240.0000.00716.44
7.4.230.0070.00016.50
7.4.220.0100.01016.48
7.4.210.0100.00716.53
7.4.200.0070.00016.61
7.4.190.0000.00816.54
7.4.160.0120.00916.46
7.4.150.0180.00616.26
7.4.140.0030.01316.28
7.4.130.0040.01316.35
7.4.120.0110.00716.31
7.4.110.0060.01216.31
7.4.100.0090.00916.45
7.4.90.0070.01116.34
7.4.80.0040.01319.39
7.4.70.0030.01316.60
7.4.60.0060.01116.50
7.4.50.0000.00516.27
7.4.40.0060.01016.35
7.4.30.0060.01316.27
7.4.00.0120.00314.94
7.3.330.0030.00312.98
7.3.320.0030.00312.96
7.3.310.0030.00316.10
7.3.300.0030.00316.08
7.3.290.0110.00716.10
7.3.280.0070.01016.15
7.3.270.0040.01416.14
7.3.260.0130.00416.36
7.3.250.0100.00816.19
7.3.240.0100.00616.32
7.3.230.0080.01016.09
7.3.210.0160.00016.26
7.3.200.0130.00316.05
7.3.190.0120.00916.09
7.3.180.0060.00916.38
7.3.170.0100.00716.10
7.3.160.0120.00516.22
7.3.120.0060.00814.69
7.3.10.0060.00616.44
7.3.00.0120.00316.27
7.2.330.0060.01516.24
7.2.320.0030.01416.47
7.2.310.0090.01316.49
7.2.300.0150.00616.47
7.2.290.0100.00616.17
7.2.130.0000.01016.73
7.2.120.0030.00716.73
7.2.110.0030.00716.82
7.2.100.0080.00416.71
7.2.90.0030.00716.55
7.2.80.0030.00716.85
7.2.70.0060.00616.83
7.2.60.0070.00716.83
7.2.50.0030.01016.66
7.2.40.0060.00616.62
7.2.30.0030.00916.76
7.2.20.0030.00916.50
7.2.10.0060.00316.67
7.2.00.0060.00818.07
7.1.250.0090.00315.88
7.1.100.0040.00717.82
7.1.70.0070.00317.11
7.1.60.0140.01019.31
7.1.50.0000.02117.02
7.1.00.0030.03722.30
7.0.200.0080.00016.41
7.0.140.0030.07322.04
7.0.120.0070.07021.96
7.0.60.0270.07019.85
7.0.50.0070.03717.89
7.0.40.0030.07719.90
7.0.30.0200.05320.13
7.0.20.0200.08320.16
7.0.10.0100.07320.13
7.0.00.0070.09020.20
5.6.280.0070.07020.91
5.6.210.0130.07720.75
5.6.200.0130.07718.12
5.6.190.0070.04720.57
5.6.180.0230.07320.41
5.6.170.0430.04020.31
5.6.160.0070.04320.46
5.6.150.0070.05018.19
5.6.140.0030.04718.14
5.6.130.0030.08018.12
5.6.120.0030.09021.04
5.6.110.0030.04720.95
5.6.100.0130.08020.98
5.6.90.0030.04721.13
5.6.80.0130.06320.38
5.5.350.0170.07020.33
5.5.340.0070.07018.02
5.5.330.0130.08020.06
5.5.320.0170.05020.14
5.5.310.0200.04020.20
5.5.300.0130.07317.98
5.5.290.0070.05018.02
5.5.280.0100.08320.84
5.5.270.0070.08320.64
5.5.260.0100.05720.79
5.5.250.0030.08320.68
5.5.240.0100.03320.06
5.4.450.0100.08019.35
5.4.440.0100.07719.40
5.4.430.0030.06719.24
5.4.420.0030.06319.46
5.4.410.0070.07719.38
5.4.400.0100.07719.01
5.4.390.0100.03719.08
5.4.380.0100.04719.14
5.4.370.0000.08019.16
5.4.360.0130.07019.12
5.4.350.0030.06018.80
5.4.340.0030.04719.15
5.4.320.0000.04319.18
5.4.310.0100.07019.18
5.4.300.0070.08019.09
5.4.290.0000.07719.07
5.4.280.0130.03018.79
5.4.270.0100.03318.81
5.4.260.0130.06018.92
5.4.250.0030.04719.16
5.4.240.0030.04019.08
5.4.230.0070.03718.91
5.4.220.0170.06318.78
5.4.210.0070.05018.80
5.4.200.0070.06319.15
5.4.190.0070.06719.17
5.4.180.0170.06019.10
5.4.170.0170.05019.02
5.4.160.0100.06019.15
5.4.150.0170.07019.12
5.4.140.0100.04016.17
5.4.130.0100.06016.47
5.4.120.0100.05016.20
5.4.110.0000.04716.30
5.4.100.0030.07716.61
5.4.90.0070.06716.39
5.4.80.0070.03316.59
5.4.70.0100.05316.39
5.4.60.0070.06716.28
5.4.50.0000.05016.29
5.4.40.0130.04316.34
5.4.30.0030.03716.38
5.4.20.0070.07016.32
5.4.10.0030.04716.37
5.4.00.0130.05715.69
5.3.290.0100.06014.61
5.3.280.0030.07714.49
5.3.270.0000.05014.54
5.3.260.0130.06714.57
5.3.250.0100.07314.55
5.3.240.0070.07014.57
5.3.230.0070.06314.52
5.3.220.0030.07314.46
5.3.210.0100.07014.52
5.3.200.0100.04314.50
5.3.190.0100.07014.53
5.3.180.0070.07714.54
5.3.170.0170.06014.38
5.3.160.0070.06014.38
5.3.150.0070.06714.38
5.3.140.0030.07014.51
5.3.130.0070.05714.51
5.3.120.0030.07714.50
5.3.110.0070.04314.46
5.3.100.0030.04013.98
5.3.90.0030.03713.95
5.3.80.0070.07313.94
5.3.70.0000.05013.84
5.3.60.0000.05013.82
5.3.50.0070.03313.76
5.3.40.0070.07013.77
5.3.30.0100.06313.85
5.3.20.0070.07313.61
5.3.10.0100.06313.58
5.3.00.0100.04313.43
5.2.170.0000.07011.22
5.2.160.0000.06711.04
5.2.150.0070.06311.00
5.2.140.0000.07011.22
5.2.130.0000.04011.05
5.2.120.0000.06711.11
5.2.110.0100.06010.97
5.2.100.0100.06011.04
5.2.90.0100.05711.25
5.2.80.0070.06011.02
5.2.70.0130.05710.97
5.2.60.0000.05310.98
5.2.50.0130.02310.90
5.2.40.0000.04010.92
5.2.30.0000.03710.86
5.2.20.0030.05711.11
5.2.10.0000.06710.91
5.2.00.0000.05310.71
5.1.60.0070.05310.03
5.1.50.0030.05010.07
5.1.40.0030.0539.99
5.1.30.0100.03010.41
5.1.20.0030.06010.20
5.1.10.0030.03310.01
5.1.00.0030.0339.96
5.0.50.0030.0308.39
5.0.40.0000.0238.42
5.0.30.0100.0578.23
5.0.20.0030.0208.26
5.0.10.0070.0378.14
5.0.00.0000.0378.14
4.4.90.0000.0177.68
4.4.80.0030.0137.68
4.4.70.0000.0407.68
4.4.60.0030.0377.68
4.4.50.0000.0407.68
4.4.40.0100.0507.68
4.4.30.0000.0377.68
4.4.20.0030.0207.68
4.4.10.0100.0377.68
4.4.00.0000.0277.68
4.3.110.0030.0377.68
4.3.100.0000.0207.68
4.3.90.0000.0377.68
4.3.80.0070.0237.68
4.3.70.0100.0277.68
4.3.60.0000.0177.68
4.3.50.0000.0407.68
4.3.40.0000.0577.68
4.3.30.0000.0307.68
4.3.20.0030.0277.68
4.3.10.0030.0337.68
4.3.00.0000.0377.68

preferences:
41.05 ms | 401 KiB | 5 Q