3v4l.org

run code in 300+ PHP versions simultaneously
<?php $def = array('a'=>1, 'b'=>2); $arr_lang = array('a'=>3, 'c'=>4); $arr_lang = array_merge($def , $arr_lang); print_r($arr_lang);

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.0120.00616.50
8.3.50.0070.01417.86
8.3.40.0040.01118.59
8.3.30.0070.01018.79
8.3.20.0040.00420.04
8.3.10.0080.00023.65
8.3.00.0040.00420.80
8.2.180.0070.01016.32
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.24
8.2.110.0050.00522.08
8.2.100.0080.00320.40
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0030.00717.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0070.00319.82
8.2.30.0060.00318.17
8.2.20.0080.00017.49
8.2.10.0050.00218.07
8.2.00.0080.00019.37
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.19
8.1.230.0110.00018.91
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.01117.11
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0030.00321.95
8.1.150.0000.00718.58
8.1.140.0000.00717.44
8.1.130.0000.00717.82
8.1.120.0040.00417.29
8.1.110.0030.00617.21
8.1.100.0070.00017.43
8.1.90.0000.00717.35
8.1.80.0030.00317.34
8.1.70.0000.00717.26
8.1.60.0030.00517.54
8.1.50.0050.00317.43
8.1.40.0080.00017.41
8.1.30.0040.00417.58
8.1.20.0030.00517.51
8.1.10.0030.00517.41
8.1.00.0000.00717.27
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00717.20
8.0.260.0030.00317.23
8.0.250.0080.00016.79
8.0.240.0030.00316.86
8.0.230.0030.00416.92
8.0.220.0000.00716.87
8.0.210.0070.00016.91
8.0.200.0030.00616.83
8.0.190.0040.00416.90
8.0.180.0000.00716.76
8.0.170.0000.00816.68
8.0.160.0000.00716.87
8.0.150.0000.00716.78
8.0.140.0050.00216.67
8.0.130.0030.00313.25
8.0.120.0040.00416.67
8.0.110.0040.00416.63
8.0.100.0050.00316.75
8.0.90.0070.00016.63
8.0.80.0150.00016.80
8.0.70.0040.00416.80
8.0.60.0040.00416.65
8.0.50.0040.00416.80
8.0.30.0070.01217.06
8.0.20.0080.01017.40
8.0.10.0060.00316.99
8.0.00.0150.00716.61
7.4.330.0020.00215.02
7.4.320.0070.00016.39
7.4.300.0060.00016.52
7.4.290.0070.00016.49
7.4.280.0080.00016.41
7.4.270.0040.00416.52
7.4.260.0000.00716.47
7.4.250.0000.00816.48
7.4.240.0040.00416.41
7.4.230.0060.00016.32
7.4.220.0140.00316.43
7.4.210.0050.02716.50
7.4.200.0030.00316.53
7.4.160.0030.01916.52
7.4.150.0130.00617.40
7.4.140.0110.00817.86
7.4.130.0180.00316.43
7.4.120.0150.00616.40
7.4.110.0100.01316.53
7.4.100.0060.01216.44
7.4.90.0160.00316.60
7.4.80.0070.01119.39
7.4.70.0060.01016.43
7.4.60.0080.00816.39
7.4.50.0000.00816.32
7.4.40.0070.01016.38
7.4.30.0180.00316.46
7.4.00.0100.00714.78
7.3.330.0050.00013.07
7.3.320.0000.00512.90
7.3.310.0000.00716.22
7.3.300.0000.00716.02
7.3.290.0070.00716.18
7.3.280.0050.01116.13
7.3.270.0040.01317.40
7.3.260.0070.01416.30
7.3.250.0040.01316.24
7.3.240.0030.01416.16
7.3.230.0110.00716.39
7.3.210.0170.00316.13
7.3.200.0090.00619.39
7.3.190.0130.01016.30
7.3.180.0040.01216.02
7.3.170.0110.00416.27
7.3.160.0040.01816.14
7.3.120.0110.00514.69
7.3.110.0040.01414.57
7.3.100.0090.00014.60
7.3.90.0090.00914.61
7.3.80.0070.00714.75
7.3.70.0060.00914.40
7.3.60.0070.00714.63
7.3.50.0050.00514.82
7.3.40.0060.00614.71
7.3.30.0070.01014.43
7.3.20.0080.00616.43
7.3.10.0080.00516.49
7.3.00.0110.00016.32
7.2.330.0060.01016.48
7.2.320.0070.01316.41
7.2.310.0080.00816.65
7.2.300.0160.01316.48
7.2.290.0070.01016.46
7.2.250.0070.01315.02
7.2.240.0130.00614.92
7.2.230.0030.01014.97
7.2.220.0000.01615.01
7.2.210.0040.01114.70
7.2.200.0060.00314.95
7.2.190.0060.00914.86
7.2.180.0040.00714.84
7.2.170.0060.00614.82
7.2.60.0000.01416.80
7.2.00.0060.00919.02
7.1.330.0000.01715.57
7.1.320.0060.00815.86
7.1.310.0140.00015.63
7.1.300.0000.01115.78
7.1.290.0030.00915.63
7.1.280.0030.01015.79
7.1.270.0090.00615.89
7.1.260.0000.01315.90
7.1.200.0060.00615.62
7.1.100.0130.00618.20
7.1.70.0000.00817.20
7.1.60.0030.02019.70
7.1.50.0090.01216.89
7.1.00.0070.07322.33
7.0.200.0030.00516.34
7.0.140.0100.06722.00
7.0.60.0100.07719.82
7.0.50.0100.05717.91
7.0.40.0070.04019.96
7.0.30.0400.05720.34
7.0.20.0200.04720.33
7.0.10.0230.08320.02
7.0.00.0100.06720.01
5.6.280.0000.07721.00
5.6.210.0100.07720.61
5.6.200.0070.08018.18
5.6.190.0070.08320.32
5.6.180.0000.04720.54
5.6.170.0300.05020.52
5.6.160.0030.04020.52
5.6.150.0070.07018.11
5.6.140.0100.08018.11
5.6.130.0030.08718.11
5.6.120.0030.04021.10
5.6.110.0200.07321.07
5.6.100.0070.04721.00
5.6.90.0100.06321.13
5.6.80.0100.07320.36
5.6.70.0130.06320.37
5.5.350.0030.03320.51
5.5.340.0030.06017.92
5.5.330.0170.04020.06
5.5.320.0070.08320.41
5.5.310.0300.07720.27
5.5.300.0100.07718.02
5.5.290.0130.05317.96
5.5.280.0070.03720.84
5.5.270.0030.07320.88
5.5.260.0000.04320.96
5.5.250.0030.06020.49
5.5.240.0030.03720.06
5.4.450.1500.04319.25
5.4.440.1800.04019.57
5.4.430.1770.04319.21
5.4.420.1670.04019.41
5.4.410.1970.04319.27
5.4.400.1870.03318.77
5.4.390.1830.03718.89
5.4.380.0470.04018.81
5.4.370.0000.04019.13
5.4.360.0300.04019.24
5.4.350.1770.03019.08
5.4.340.2000.03319.09
5.4.320.2230.04718.93
5.4.310.1500.04019.05
5.4.300.1800.03718.77
5.4.290.1970.04319.18
5.4.280.1730.03718.77
5.4.270.1830.03718.80
5.4.260.1770.04319.13
5.4.250.1800.03718.93
5.4.240.1770.04319.13
5.4.230.1830.03719.23
5.4.220.2170.04719.08
5.4.210.2230.04019.08
5.4.200.1900.03318.82
5.4.190.1830.03319.04
5.4.180.2170.03019.07
5.4.170.1770.04018.92
5.4.160.2030.04318.91
5.4.150.1830.03319.18
5.4.140.2070.03716.55
5.4.130.1930.03316.44
5.4.120.0600.05316.22
5.4.110.0070.07016.40
5.4.100.0070.04016.34
5.4.90.1630.05016.39
5.4.80.1830.03016.42
5.4.70.1930.03316.39
5.4.60.1930.03316.04
5.4.50.2270.04316.06
5.4.40.1800.03316.36
5.4.30.1770.04016.20
5.4.20.1900.03316.27
5.4.10.1870.04016.18
5.4.00.2030.04315.72
5.3.290.1930.04714.68
5.3.280.1770.03714.55
5.3.270.1970.03714.55
5.3.260.1730.04014.55
5.3.250.2100.04314.51
5.3.240.2100.04314.56
5.3.230.1930.05014.46
5.3.220.1830.03314.42
5.3.210.2000.05014.51
5.3.200.2100.03314.47
5.3.190.1770.03714.42
5.3.180.1800.03314.40
5.3.170.1770.03714.39
5.3.160.1700.04014.44
5.3.150.2070.04314.51
5.3.140.2100.04714.46
5.3.130.1930.03714.53
5.3.120.2030.04014.48
5.3.110.1970.05014.59
5.3.100.2000.04714.08
5.3.90.1700.03714.11
5.3.80.2000.03313.86
5.3.70.0930.04014.00
5.3.60.0030.03713.96
5.3.50.0030.05313.80
5.3.40.0070.07713.99
5.3.30.1900.04313.84
5.3.20.1900.04713.70
5.3.10.1870.03013.53
5.3.00.1430.04013.54
5.2.170.1600.03311.20
5.2.160.1670.03710.98
5.2.150.1800.03711.19
5.2.140.1500.03710.98
5.2.130.1730.04310.99
5.2.120.1700.03011.15
5.2.110.1800.03311.14
5.2.100.1500.03010.99
5.2.90.1700.03311.20
5.2.80.1700.03711.11
5.2.70.1730.03011.12
5.2.60.1430.03011.14
5.2.50.1330.04310.84
5.2.40.1430.03010.82
5.2.30.1500.02710.81
5.2.20.1300.02711.00
5.2.10.1230.02710.86
5.2.00.1400.02710.63
5.1.60.1400.0239.91
5.1.50.1430.0239.89
5.1.40.1370.0379.85
5.1.30.1370.02010.24
5.1.20.1470.03010.30
5.1.10.1430.03010.30
5.1.00.1200.02710.04
5.0.50.0770.0308.62
5.0.40.0570.0208.38
5.0.30.0700.0438.10
5.0.20.0630.0208.18
5.0.10.0570.0208.14
5.0.00.0530.0338.14
4.4.90.0530.0178.10
4.4.80.0600.0178.10
4.4.70.0770.0238.10
4.4.60.0730.0278.10
4.4.50.0700.0278.10
4.4.40.0670.0138.10
4.4.30.0500.0178.10
4.4.20.0870.0138.10
4.4.10.0530.0208.10
4.4.00.0730.0378.10
4.3.110.0530.0208.10
4.3.100.0530.0138.10
4.3.90.0600.0208.10
4.3.80.0400.0238.10
4.3.70.0030.0138.10
4.3.60.0100.0078.10
4.3.50.0000.0208.10
4.3.40.0070.0178.10
4.3.30.0030.0178.10
4.3.20.0000.0408.10
4.3.10.0000.0178.10
4.3.00.0070.0238.10

preferences:
55.57 ms | 400 KiB | 5 Q