3v4l.org

run code in 300+ PHP versions simultaneously
<?php $music = array('classic' => 'Brahms', 'house' => 'Rufneck', 'Soul' => 'Mariah'); $music1 = array('jazz' => 'Miles', 'techno' => 'DJ Mouse', 'indy' => 'Krishna'); $result = array_merge($music, $music1); echo'<pre>';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.0110.00416.37
8.3.50.0080.00822.10
8.3.40.0120.00318.48
8.3.30.0060.00918.96
8.3.20.0080.00020.04
8.3.10.0050.00323.71
8.3.00.0070.00020.78
8.2.180.0130.00718.54
8.2.170.0170.00322.96
8.2.160.0070.00720.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00022.30
8.2.110.0090.00022.25
8.2.100.0090.00317.78
8.2.90.0000.00719.05
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00919.38
8.2.30.0050.00317.99
8.2.20.0030.00517.57
8.2.10.0040.00417.66
8.2.00.0050.00217.66
8.1.280.0070.00725.92
8.1.270.0060.00324.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0080.00419.14
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0060.00317.40
8.1.180.0060.00318.10
8.1.170.0050.00518.66
8.1.160.0000.00821.93
8.1.150.0070.00018.56
8.1.140.0030.00617.36
8.1.130.0040.00417.68
8.1.120.0000.00817.29
8.1.110.0040.00417.39
8.1.100.0040.00417.28
8.1.90.0050.00317.26
8.1.80.0070.00017.32
8.1.70.0000.00717.25
8.1.60.0060.00317.51
8.1.50.0040.00417.46
8.1.40.0000.00717.45
8.1.30.0000.00917.59
8.1.20.0000.00717.48
8.1.10.0070.00017.36
8.1.00.0030.00617.43
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0040.00418.48
8.0.270.0000.00817.12
8.0.260.0000.00716.86
8.0.250.0000.00716.85
8.0.240.0030.00716.75
8.0.230.0000.00716.80
8.0.220.0070.00016.82
8.0.210.0050.00216.79
8.0.200.0030.00316.74
8.0.190.0070.00016.85
8.0.180.0000.00716.71
8.0.170.0000.00816.90
8.0.160.0040.00416.78
8.0.150.0070.00016.78
8.0.140.0050.00316.79
8.0.130.0000.00613.21
8.0.120.0090.00016.67
8.0.110.0030.00516.77
8.0.100.0000.00716.66
8.0.90.0080.00016.69
8.0.80.0120.00316.81
8.0.70.0040.00416.67
8.0.60.0050.00216.85
8.0.50.0000.00816.80
8.0.30.0120.00616.91
8.0.20.0090.00917.40
8.0.10.0050.00316.98
8.0.00.0130.00616.65
7.4.330.0050.00015.03
7.4.320.0000.00616.41
7.4.300.0070.00016.41
7.4.290.0000.00816.41
7.4.280.0000.00716.42
7.4.270.0000.00816.42
7.4.260.0000.00716.41
7.4.250.0080.00016.49
7.4.240.0000.00716.43
7.4.230.0000.00716.53
7.4.220.0090.01616.34
7.4.210.0070.00916.52
7.4.200.0040.00416.34
7.4.190.0030.00316.48
7.4.160.0000.01516.46
7.4.150.0090.00917.40
7.4.140.0130.01017.86
7.4.130.0090.00816.39
7.4.120.0080.01016.30
7.4.110.0030.01416.35
7.4.100.0120.00616.41
7.4.90.0180.00616.43
7.4.80.0080.00816.27
7.4.70.0180.00616.31
7.4.60.0160.00016.51
7.4.50.0040.00416.34
7.4.40.0040.01122.77
7.4.30.0140.00316.45
7.4.00.0030.01314.87
7.3.330.0060.00013.02
7.3.320.0060.00012.98
7.3.310.0000.00716.14
7.3.300.0030.00316.10
7.3.290.0120.00316.11
7.3.280.0060.01016.15
7.3.270.0070.01017.40
7.3.260.0070.01516.32
7.3.250.0040.01416.10
7.3.240.0060.01216.24
7.3.230.0130.00616.39
7.3.210.0100.00716.32
7.3.200.0130.00719.39
7.3.190.0090.01216.34
7.3.180.0130.01016.34
7.3.170.0080.00816.27
7.3.160.0100.00616.21
7.3.120.0040.01114.68
7.3.00.0030.01016.41
7.2.330.0140.00316.66
7.2.320.0090.00916.39
7.2.310.0060.01016.57
7.2.300.0130.00616.58
7.2.290.0090.00616.32
7.2.130.0000.01716.46
7.2.120.0120.00616.87
7.2.110.0000.01416.92
7.2.100.0060.00616.92
7.2.90.0060.00616.47
7.2.80.0100.00316.62
7.2.70.0030.01316.87
7.2.60.0050.00816.52
7.2.50.0030.01016.79
7.2.40.0090.00316.69
7.2.30.0090.00917.02
7.2.20.0090.00316.89
7.2.10.0030.01016.54
7.2.00.0020.01218.02
7.1.250.0070.00715.78
7.1.240.0060.00315.60
7.1.230.0040.00815.50
7.1.220.0060.00615.42
7.1.210.0060.00615.59
7.1.200.0030.00615.59
7.1.190.0110.00015.60
7.1.180.0060.00615.47
7.1.170.0040.01115.80
7.1.160.0070.00415.74
7.1.150.0080.00315.43
7.1.140.0060.00615.57
7.1.130.0060.00615.65
7.1.120.0070.00415.30
7.1.110.0030.01315.88
7.1.100.0020.00816.87
7.1.90.0060.00615.54
7.1.80.0000.01115.63
7.1.70.0020.00916.28
7.1.60.0070.00717.55
7.1.50.0120.00725.16
7.1.40.0040.00815.74
7.1.30.0040.00415.52
7.1.20.0070.00315.87
7.1.10.0060.00615.62
7.1.00.0070.03919.01
7.0.330.0070.00715.22
7.0.320.0060.00315.27
7.0.310.0060.00515.43
7.0.300.0000.01015.49
7.0.290.0030.00615.22
7.0.280.0040.00815.27
7.0.270.0030.00915.31
7.0.260.0000.01114.99
7.0.250.0060.00615.44
7.0.240.0070.00315.31
7.0.230.0000.00715.22
7.0.220.0060.00615.06
7.0.210.0040.00715.29
7.0.200.0130.00514.88
7.0.190.0070.00315.09
7.0.180.0060.00915.09
7.0.170.0060.00615.29
7.0.160.0040.00415.46
7.0.150.0070.00015.22
7.0.140.0020.03918.59
7.0.130.0060.00615.52
7.0.120.0000.01515.40
7.0.110.0040.00815.16
7.0.100.0000.00915.43
7.0.90.0000.00915.27
7.0.80.0070.00715.11
7.0.70.0000.00915.38
7.0.60.0130.03517.59
7.0.50.0020.03516.62
7.0.40.0080.04516.76
7.0.30.0240.03816.69
7.0.20.0150.04516.66
7.0.10.0120.03216.73
7.0.00.0000.02616.60
5.6.380.0080.00813.92
5.6.370.0110.00314.45
5.6.360.0080.00413.78
5.6.350.0040.00714.52
5.6.340.0050.00214.07
5.6.330.0030.00714.11
5.6.320.0050.00513.92
5.6.310.0000.00814.05
5.6.300.0070.00714.50
5.6.290.0000.01214.20
5.6.280.0030.04117.65
5.6.270.0000.00814.09
5.6.260.0060.01014.16
5.6.250.0040.01114.09
5.6.240.0060.00914.25
5.6.230.0030.00714.30
5.6.220.0110.00314.27
5.6.210.0050.02517.42
5.6.200.0070.04516.17
5.6.190.0060.04117.38
5.6.180.0120.02517.50
5.6.170.0180.04017.35
5.6.160.0050.04717.17
5.6.150.0070.03016.25
5.6.140.0100.04016.14
5.6.130.0020.04916.17
5.6.120.0090.04517.59
5.6.110.0080.03417.68
5.6.100.0080.04317.71
5.6.90.0140.04017.67
5.6.80.0080.04317.26
5.6.70.0070.00314.33
5.6.60.0000.00913.85
5.6.50.0030.00613.88
5.6.40.0030.00914.02
5.6.30.0120.00414.10
5.6.20.0040.00414.00
5.6.10.0040.00713.98
5.6.00.0000.00913.97
5.5.380.0030.01010.90
5.5.370.0040.00811.14
5.5.360.0030.00310.90
5.5.350.0110.02615.71
5.5.340.0100.01814.43
5.5.330.0080.03815.65
5.5.320.0080.04015.57
5.5.310.0190.01815.69
5.5.300.0050.04214.49
5.5.290.0050.03214.52
5.5.280.0070.04016.04
5.5.270.0040.02516.00
5.5.260.0050.04815.89
5.5.250.0130.04015.68
5.5.240.0060.03015.52
5.5.230.0030.00311.02
5.5.220.0030.00310.90
5.5.210.0030.00311.13
5.5.200.0060.00311.01
5.5.190.0060.00311.02
5.5.180.0070.00011.12
5.5.170.0000.00811.02
5.5.160.0000.00910.93
5.5.150.0030.00611.17
5.5.140.0030.00610.90
5.5.130.0030.00511.02
5.5.120.0070.00011.17
5.5.110.0030.00710.90
5.5.100.0040.00410.90
5.5.90.0030.00711.03
5.5.80.0030.01010.90
5.5.70.0030.00510.96
5.5.60.0000.01111.04
5.5.50.0040.00411.04
5.5.40.0000.01010.96
5.5.30.0040.00510.90
5.5.20.0060.00610.90
5.5.10.0050.00510.90
5.5.00.0030.00610.90
5.4.450.0380.02715.27
5.4.440.0550.02815.19
5.4.430.0060.03415.29
5.4.420.0500.02915.13
5.4.410.0140.02614.85
5.4.400.0150.03614.83
5.4.390.0190.02614.78
5.4.380.0070.03314.79
5.4.370.0120.02914.81
5.4.360.0140.02314.82
5.4.350.0080.03114.80
5.4.340.0090.02814.81
5.4.330.0000.00610.90
5.4.320.0050.02611.75
5.4.310.0040.02211.67
5.4.300.0050.01811.68
5.4.290.0070.02011.67
5.4.280.0080.03011.61
5.4.270.0090.02511.67
5.4.260.0050.04711.61
5.4.250.0040.02911.61
5.4.240.0160.04911.61
5.4.230.0040.04311.61
5.4.220.0090.03611.60
5.4.210.0040.03211.61
5.4.200.0040.03411.60
5.4.190.0060.03011.60
5.4.180.0090.05111.60
5.4.170.0060.03611.61
5.4.160.0070.03111.61
5.4.150.0070.03211.61
5.4.140.0060.03311.45
5.4.130.0050.03211.44
5.4.120.0070.03511.42
5.4.110.0100.02811.42
5.4.100.0080.03011.42
5.4.90.0070.03211.42
5.4.80.0070.03111.42
5.4.70.0050.03111.41
5.4.60.0050.03411.41
5.4.50.0090.03111.42
5.4.40.0020.03211.41
5.4.30.0050.03111.41
5.4.20.0080.02711.41
5.4.10.0040.03311.41
5.4.00.0040.03311.15
5.3.290.0030.02411.85
5.3.280.0070.02911.80
5.3.270.0060.03311.81
5.3.260.0070.03111.81
5.3.250.0070.03011.81
5.3.240.0040.03411.81
5.3.230.0070.03211.80
5.3.220.0060.03211.79
5.3.210.0090.02311.79
5.3.200.0070.03011.79
5.3.190.0070.03211.79
5.3.180.0090.03611.79
5.3.170.0060.03211.79
5.3.160.0080.03011.79
5.3.150.0050.03111.79
5.3.140.0090.02511.78
5.3.130.0040.03411.78
5.3.120.0100.02611.78
5.3.110.0040.03211.78
5.3.100.0040.03111.51
5.3.90.0060.02811.49
5.3.80.0060.02311.49
5.3.70.0060.02511.49
5.3.60.0080.02011.48
5.3.50.0070.02411.45
5.3.40.0070.02711.45
5.3.30.0060.03211.42
5.3.20.0040.02411.30
5.3.10.0070.02811.28
5.3.00.0060.02611.28
5.2.170.0050.02310.02
5.2.160.0060.02510.02
5.2.150.0070.03510.02
5.2.140.0100.01810.02
5.2.130.0070.03510.00
5.2.120.0070.02310.00
5.2.110.0060.02310.01
5.2.100.0080.02610.01
5.2.90.0040.02610.01
5.2.80.0060.02310.00
5.2.70.0050.02410.00
5.2.60.0030.0269.98
5.2.50.0040.0359.97
5.2.40.0050.0269.95
5.2.30.0030.0279.94
5.2.20.0040.0239.94
5.2.10.0080.0239.90
5.2.00.0070.0249.83
5.1.60.0020.0249.47
5.1.50.0060.0269.47
5.1.40.0040.0159.46
5.1.30.0050.0159.64
5.1.20.0030.0199.65
5.1.10.0060.0259.51
5.1.00.0080.0389.51
5.0.50.0070.0188.75
5.0.40.0050.0188.68
5.0.30.0040.0218.58
5.0.20.0060.0138.57
5.0.10.0040.0148.56
5.0.00.0020.0248.55
4.4.90.0020.0147.84
4.4.80.0050.0197.83
4.4.70.0020.0147.83
4.4.60.0030.0137.83
4.4.50.0040.0107.83
4.4.40.0070.0237.80
4.4.30.0080.0207.83
4.4.20.0040.0187.87
4.4.10.0020.0207.88
4.4.00.0020.0177.83
4.3.110.0050.0167.79
4.3.100.0030.0157.78
4.3.90.0030.0137.77
4.3.80.0050.0187.74
4.3.70.0050.0127.77
4.3.60.0070.0127.76
4.3.50.0050.0127.76
4.3.40.0030.0227.72
4.3.30.0050.0177.08
4.3.20.0100.0447.07
4.3.10.0020.0147.06
4.3.00.0050.0158.88

preferences:
36.9 ms | 401 KiB | 5 Q