3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("color" => "red", 2, 4); $array2 = array("a", "b", "color" => "green", "shape" => "trapezoid", 4); $result = array_merge($array1, $array2); print_r($result); ?>

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.0140.00716.50
8.3.50.0150.00916.51
8.3.40.0080.00818.44
8.3.30.0110.00418.65
8.3.20.0080.00018.35
8.3.10.0040.00420.38
8.3.00.0080.00019.25
8.2.180.0060.01216.50
8.2.170.0070.00722.96
8.2.160.0100.00321.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00725.16
8.2.120.0040.00420.75
8.2.110.0100.01022.26
8.2.100.0090.00317.72
8.2.90.0050.00317.63
8.2.80.0080.00018.65
8.2.70.0040.00417.38
8.2.60.0040.00417.63
8.2.50.0040.00417.55
8.2.40.0060.00417.88
8.2.30.0070.00517.82
8.2.20.0060.00618.59
8.2.10.0060.00818.05
8.2.00.0040.00817.98
8.1.280.0100.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.84
8.1.230.0060.00619.09
8.1.220.0030.00617.76
8.1.210.0060.00318.77
8.1.200.0000.00817.00
8.1.190.0050.00217.10
8.1.180.0080.00018.10
8.1.170.0050.00718.22
8.1.160.0040.00818.24
8.1.150.0070.00318.24
8.1.140.0110.00317.88
8.1.130.0090.00518.01
8.1.120.0070.00717.87
8.1.110.0100.00417.88
8.1.100.0070.00717.87
8.1.90.0100.00417.68
8.1.80.0070.00717.59
8.1.70.0080.00517.66
8.1.60.0090.00617.82
8.1.50.0100.00717.68
8.1.40.0100.00517.80
8.1.30.0090.00517.90
8.1.20.0100.00517.84
8.1.10.0080.00717.72
8.1.00.0070.00817.68
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0120.00017.98
8.0.270.0090.00417.61
8.0.260.0060.00417.43
8.0.250.0060.00517.52
8.0.240.0110.00117.48
8.0.230.0080.00417.55
8.0.220.0110.00217.25
8.0.210.0090.00317.24
8.0.200.0080.00417.27
8.0.190.0070.00617.35
8.0.180.0050.00917.30
8.0.170.0110.00417.29
8.0.160.0090.00417.25
8.0.150.0090.00417.20
8.0.140.0060.00717.28
8.0.130.0080.00416.35
8.0.120.0090.00417.25
8.0.110.0090.00517.20
8.0.100.0070.00517.14
8.0.90.0090.00317.21
8.0.80.0080.00517.23
8.0.70.0090.00317.17
8.0.60.0070.00517.14
8.0.50.0050.00717.17
8.0.30.0100.00717.07
8.0.20.0110.00517.16
8.0.10.0050.00817.27
8.0.00.0100.00517.10
7.4.330.0050.00315.75
7.4.320.0110.00217.26
7.4.300.0070.00517.05
7.4.290.0090.00417.02
7.4.280.0080.00517.05
7.4.270.0090.00417.04
7.4.260.0090.00416.13
7.4.250.0060.00515.77
7.4.240.0120.00117.03
7.4.230.0090.00316.91
7.4.220.0090.00416.98
7.4.210.0070.00716.76
7.4.200.0080.00316.97
7.4.190.0040.00616.99
7.4.180.0070.00517.06
7.4.160.0070.00916.84
7.4.150.0060.00716.82
7.4.140.0100.00516.69
7.4.130.0080.00616.65
7.4.120.0080.00716.69
7.4.110.0100.00616.59
7.4.100.0090.00716.68
7.4.90.0080.00816.63
7.4.80.0080.00916.57
7.4.70.0090.00816.62
7.4.60.0080.00816.58
7.4.50.0080.00916.55
7.4.40.0100.00616.50
7.4.30.0070.01016.60
7.4.20.0080.00816.55
7.4.10.0100.00816.54
7.4.00.0080.00816.49
7.3.330.0080.00415.96
7.3.320.0120.00015.99
7.3.310.0080.00516.78
7.3.300.0060.00516.65
7.3.290.0100.00416.70
7.3.280.0090.00616.52
7.3.270.0080.00616.59
7.3.260.0060.00816.57
7.3.250.0080.00616.52
7.3.240.0110.00416.59
7.3.230.0090.00716.48
7.3.220.0100.00516.52
7.3.210.0100.00616.45
7.3.200.0120.00516.46
7.3.190.0080.00816.39
7.3.180.0090.00616.41
7.3.170.0090.00816.42
7.3.160.0100.00816.41
7.3.150.0100.00716.40
7.3.140.0090.00816.37
7.3.130.0080.00816.43
7.3.120.0080.00816.23
7.3.110.0090.00716.40
7.3.100.0080.00916.40
7.3.90.0100.00616.55
7.3.80.0110.00616.50
7.3.70.0100.00716.42
7.3.60.0120.00516.17
7.3.50.0110.00716.24
7.3.40.0100.00716.28
7.3.30.0100.00716.31
7.3.20.0110.00616.65
7.3.10.0090.00816.58
7.3.00.0080.00916.56
7.2.340.0120.00616.64
7.2.330.0120.00716.59
7.2.320.0110.00716.60
7.2.310.0100.00816.63
7.2.300.0100.00816.64
7.2.290.0110.00716.57
7.2.280.0090.00816.57
7.2.270.0120.00716.55
7.2.260.0110.00916.62
7.2.250.0110.00616.56
7.2.240.0120.00616.59
7.2.230.0100.00916.54
7.2.220.0140.00416.64
7.2.210.0090.00816.49
7.2.200.0110.00816.60
7.2.190.0100.00716.41
7.2.180.0100.00816.43
7.2.170.0100.00816.47
7.2.160.0110.00816.46
7.2.150.0100.00916.79
7.2.140.0120.00816.83
7.2.130.0110.00716.90
7.2.120.0100.01016.84
7.2.110.0110.00716.85
7.2.100.0130.00716.85
7.2.90.0130.00816.81
7.2.80.0140.00816.63
7.2.70.0180.00516.67
7.2.60.0240.00816.54
7.2.50.0230.00716.57
7.2.40.0260.00816.61
7.2.30.0250.00816.61
7.2.20.0250.00916.59
7.2.10.0340.00816.56
7.2.00.0240.00716.83
7.1.330.0160.00716.19
7.1.320.0170.00716.20
7.1.310.0120.00816.22
7.1.300.0170.00615.94
7.1.290.0140.00715.94
7.1.280.0160.00715.90
7.1.270.0160.00715.94
7.1.260.0160.00815.93
7.1.250.0140.00715.93
7.1.240.0130.00815.90
7.1.230.0270.00715.95
7.1.220.0180.00615.97
7.1.210.0140.00715.91
7.1.200.0130.00915.90
7.1.190.0160.00615.73
7.1.180.0150.00815.71
7.1.170.0290.00915.58
7.1.160.0390.00715.79
7.1.150.0300.00815.83
7.1.140.0290.00915.78
7.1.130.0290.00915.84
7.1.120.0270.00716.03
7.1.110.0250.00815.94
7.1.100.0240.00715.91
7.1.90.0300.00815.94
7.1.80.0270.00715.96
7.1.70.0270.00715.73
7.1.60.0290.00719.64
7.1.50.0290.00819.63
7.1.40.0290.00919.54
7.1.30.0270.00819.59
7.1.20.0310.00719.54
7.1.10.0220.00815.73
7.1.00.0240.00715.74
7.0.330.0150.00515.67
7.0.320.0150.00615.65
7.0.310.0170.00615.49
7.0.300.0260.00815.31
7.0.290.0330.00815.55
7.0.280.0130.00815.66
7.0.270.0290.00815.59
7.0.260.0290.00715.74
7.0.250.0440.00815.69
7.0.240.0260.00715.71
7.0.230.0290.00815.71
7.0.220.0320.00715.75
7.0.210.0250.00915.52
7.0.200.0300.00715.57
7.0.190.0300.00715.51
7.0.180.0270.00715.46
7.0.170.0260.00715.48
7.0.160.0250.01015.43
7.0.150.0240.00715.44
7.0.140.0210.00915.50
7.0.130.0240.00715.53
7.0.120.0260.00815.50
7.0.110.0260.00615.44
7.0.100.0230.00715.45
7.0.90.0220.00615.41
7.0.80.0220.00715.50
7.0.70.0220.00815.44
7.0.60.0210.00715.47
7.0.50.0190.00815.42
7.0.40.0220.00715.51
7.0.30.0260.00815.50
7.0.20.0190.00815.43
7.0.10.0210.00715.46
7.0.00.0220.00615.46
5.6.400.0160.00715.90
5.6.390.0110.01015.85
5.6.380.0120.00915.83
5.6.370.0120.01015.86
5.6.360.0130.00915.87
5.6.350.0140.00815.95
5.6.340.0130.00915.88
5.6.330.0140.00815.95
5.6.320.0140.00815.87
5.6.310.0140.00715.90
5.6.300.0140.01316.36
5.6.290.0140.01616.44
5.6.280.0130.01516.47
5.6.270.0130.01816.44
5.6.260.0140.01516.51
5.6.250.0140.01516.48
5.6.240.0120.01816.49
5.6.230.0120.01716.52
5.6.220.0140.01416.43
5.6.210.0170.01416.43
5.6.200.0130.01716.50
5.6.190.0140.01616.48
5.6.180.0150.01516.42
5.6.170.0140.01616.54
5.6.160.0130.01616.49
5.6.150.0130.01616.50
5.6.140.0130.01716.53
5.6.130.0150.01616.46
5.6.120.0110.01816.46
5.6.110.0150.01616.44
5.6.100.0160.01416.49
5.6.90.0110.01816.43
5.6.80.0120.01516.25
5.6.70.0140.01416.31
5.6.60.0130.01516.36
5.6.50.0150.01416.27
5.6.40.0130.01616.32
5.6.30.0130.01516.27
5.6.20.0130.01616.25
5.6.10.0140.01316.26
5.6.00.0150.01616.24
5.5.380.0150.01415.74
5.5.370.0140.01715.75
5.5.360.0140.01615.76
5.5.350.0140.01615.68
5.5.340.0140.01415.80
5.5.330.0150.01415.82
5.5.320.0120.01715.82
5.5.310.0140.01815.82
5.5.300.0150.01715.81
5.5.290.0140.01715.82
5.5.280.0150.01615.75
5.5.270.0150.01415.72
5.5.260.0130.01515.74
5.5.250.0140.01615.68
5.5.240.0130.01615.69
5.5.230.0140.01515.62
5.5.220.0140.01615.68
5.5.210.0130.01515.67
5.5.200.0150.01415.69
5.5.190.0130.01615.65
5.5.180.0140.01615.62
5.5.170.0130.01015.70
5.5.160.0130.01615.62
5.5.150.0130.01715.65
5.5.140.0140.01615.58
5.5.130.0150.01715.60
5.5.120.0130.01615.64
5.5.110.0160.01415.63
5.5.100.0150.01615.68
5.5.90.0140.01615.61
5.5.80.0130.01615.66
5.5.70.0150.01415.66
5.5.60.0130.01415.59
5.5.50.0140.01315.65
5.5.40.0130.01615.56
5.5.30.0130.01515.62
5.5.20.0130.01515.60
5.5.10.0130.01615.62
5.5.00.0140.01515.62
5.4.450.0130.01514.17
5.4.440.0110.01414.12
5.4.430.0110.01314.16
5.4.420.0130.01214.10
5.4.410.0120.01414.08
5.4.400.0110.01514.01
5.4.390.0110.01514.03
5.4.380.0140.01214.02
5.4.370.0120.01414.06
5.4.360.0100.01413.99
5.4.350.0110.01313.95
5.4.340.0130.01313.99
5.4.330.0130.00513.46
5.4.320.0110.01514.00
5.4.310.0130.01214.08
5.4.300.0130.01414.04
5.4.290.0150.01214.03
5.4.280.0120.01313.99
5.4.270.0120.01314.02
5.4.260.0120.01314.02
5.4.250.0110.01314.00
5.4.240.0100.01414.00
5.4.230.0140.01213.98
5.4.220.0130.01413.98
5.4.210.0110.01414.01
5.4.200.0120.01313.96
5.4.190.0120.01213.97
5.4.180.0130.01313.99
5.4.170.0120.01313.99
5.4.160.0110.01314.00
5.4.150.0130.01113.99
5.4.140.0140.01213.70
5.4.130.0130.01113.66
5.4.120.0120.01213.71
5.4.110.0120.01213.71
5.4.100.0130.01313.69
5.4.90.0120.01113.67
5.4.80.0110.01313.65
5.4.70.0100.01613.72
5.4.60.0120.01113.74
5.4.50.0130.01113.70
5.4.40.0110.01113.69
5.4.30.0120.01213.72
5.4.20.0120.01413.75
5.4.10.0100.01513.75
5.4.00.0110.01413.59
5.3.290.0120.01213.60
5.3.280.0100.01313.55
5.3.270.0120.01313.61
5.3.260.0110.01413.63
5.3.250.0110.01413.61
5.3.240.0110.01313.57
5.3.230.0100.01513.60
5.3.220.0100.01413.51
5.3.210.0130.01313.54
5.3.200.0130.01213.53
5.3.190.0120.01113.56
5.3.180.0120.01513.63
5.3.170.0120.01413.59
5.3.160.0120.01313.61
5.3.150.0120.01213.64
5.3.140.0120.01413.59
5.3.130.0110.01313.56
5.3.120.0130.01413.55
5.3.110.0110.01513.55
5.3.100.0110.01313.44
5.3.90.0120.01413.43
5.3.80.0130.01413.38
5.3.70.0120.01313.40
5.3.60.0090.01413.46
5.3.50.0100.01313.37
5.3.40.0110.01513.40
5.3.30.0090.01213.81
5.3.20.0100.01313.38
5.3.10.0110.01213.21
5.3.00.0110.01513.24

preferences:
57.09 ms | 401 KiB | 5 Q