3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('Content-Type' => 'text/plain'); $b = array('Content-Type' => 'application/json', 'foo' => 'bar'); var_dump(array_merge($a, $b));

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.0070.00718.14
8.3.50.0120.00521.92
8.3.40.0150.00018.58
8.3.30.0140.00718.82
8.3.20.0080.00020.21
8.3.10.0000.00921.96
8.3.00.0070.00722.43
8.2.180.0040.01116.38
8.2.170.0030.01422.96
8.2.160.0100.00319.04
8.2.150.0060.01024.18
8.2.140.0000.00824.66
8.2.130.0000.01926.16
8.2.120.0030.00519.36
8.2.110.0060.00322.16
8.2.100.0050.00518.09
8.2.90.0040.00419.20
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0080.00017.91
8.2.50.0050.00318.07
8.2.40.0040.00419.94
8.2.30.0040.00417.95
8.2.20.0040.00417.50
8.2.10.0080.00017.48
8.2.00.0000.00817.48
8.1.280.0120.00625.92
8.1.270.0040.00422.24
8.1.260.0030.00526.35
8.1.250.0100.00728.09
8.1.240.0060.00323.84
8.1.230.0060.00618.93
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0050.00217.40
8.1.180.0000.00918.74
8.1.170.0110.00018.40
8.1.160.0040.00522.14
8.1.150.0000.00718.56
8.1.140.0000.00717.41
8.1.130.0000.00717.81
8.1.120.0020.00517.40
8.1.110.0030.00617.36
8.1.100.0000.00717.33
8.1.90.0030.00317.36
8.1.80.0040.00417.27
8.1.70.0000.00717.31
8.1.60.0040.00417.52
8.1.50.0020.00517.44
8.1.40.0070.00017.25
8.1.30.0000.00817.50
8.1.20.0000.00817.48
8.1.10.0070.00017.30
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0080.00017.05
8.0.280.0030.00618.37
8.0.270.0030.00317.09
8.0.260.0000.00816.75
8.0.250.0030.00316.80
8.0.240.0030.00616.86
8.0.230.0000.00716.91
8.0.220.0000.00716.71
8.0.210.0030.00316.80
8.0.200.0030.00316.79
8.0.190.0000.00716.79
8.0.180.0000.00716.87
8.0.170.0000.00816.72
8.0.160.0040.00416.69
8.0.150.0070.00016.77
8.0.140.0040.00416.77
8.0.130.0050.00013.22
8.0.120.0040.00416.76
8.0.110.0080.00016.64
8.0.100.0000.00716.82
8.0.90.0030.00516.84
8.0.80.0040.01116.86
8.0.70.0000.00716.86
8.0.60.0030.00516.88
8.0.50.0000.00716.70
8.0.30.0130.00817.14
8.0.20.0090.00917.40
8.0.10.0000.00816.80
8.0.00.0040.01316.57
7.4.330.0060.00015.00
7.4.320.0030.00316.54
7.4.300.0000.00616.50
7.4.290.0040.00416.44
7.4.280.0070.00016.54
7.4.270.0030.00616.39
7.4.260.0000.00716.42
7.4.250.0040.00416.32
7.4.240.0050.00316.47
7.4.230.0050.00216.50
7.4.220.0120.00616.47
7.4.210.0070.00716.51
7.4.200.0000.00716.54
7.4.190.0000.00716.48
7.4.160.0090.00616.29
7.4.150.0120.00917.40
7.4.140.0150.00617.86
7.4.130.0100.00716.30
7.4.120.0100.00716.29
7.4.110.0100.00716.54
7.4.100.0060.01716.45
7.4.90.0160.00416.37
7.4.80.0180.00019.39
7.4.70.0150.00416.34
7.4.60.0100.00616.49
7.4.50.0000.00516.25
7.4.40.0140.00322.77
7.4.30.0090.00616.49
7.4.00.0040.01214.61
7.3.330.0000.00512.85
7.3.320.0000.00512.92
7.3.310.0070.00016.27
7.3.300.0030.00316.13
7.3.290.0050.00816.10
7.3.280.0090.00916.08
7.3.270.0100.01317.40
7.3.260.0100.00716.39
7.3.250.0100.01016.13
7.3.240.0130.00316.17
7.3.230.0100.00716.39
7.3.210.0120.00416.37
7.3.200.0160.00019.39
7.3.190.0150.00316.18
7.3.180.0030.01416.50
7.3.170.0070.01016.27
7.3.160.0060.01016.15
7.3.120.0040.01114.57
7.2.330.0100.01016.60
7.2.320.0070.01016.34
7.2.310.0140.00316.49
7.2.300.0110.00516.24
7.2.290.0160.00016.59
7.2.60.0060.00916.43
7.2.00.0030.01019.30
7.1.200.0220.00015.41
7.1.100.0100.00018.06
7.1.70.0030.01316.82
7.1.60.0030.01219.82
7.1.50.0040.01916.84
7.1.00.0030.07722.43
7.0.200.0030.00616.65
7.0.140.0030.07322.09
7.0.60.0030.04019.94
7.0.50.0100.07717.85
7.0.40.0100.09020.05
7.0.30.0500.07020.14
7.0.20.0130.04720.18
7.0.10.0130.08020.02
7.0.00.0030.08020.12
5.6.280.0030.07321.03
5.6.210.0030.04320.68
5.6.200.0030.07718.19
5.6.190.0030.08020.58
5.6.180.0470.04320.43
5.6.170.0300.07320.48
5.6.160.0170.08020.44
5.6.150.0030.08718.11
5.6.140.0100.08018.23
5.6.130.0070.05718.18
5.6.120.0100.06320.98
5.6.110.0070.07020.98
5.6.100.0200.07320.96
5.6.90.0100.08020.96
5.6.80.0100.04020.52
5.5.350.0200.04720.32
5.5.340.0100.07718.03
5.5.330.0170.07020.38
5.5.320.0070.08020.50
5.5.310.0300.07020.21
5.5.300.0130.09017.90
5.5.290.0070.04717.98
5.5.280.0030.05320.79
5.5.270.0100.06720.75
5.5.260.0070.04720.87
5.5.250.0030.04020.60
5.5.240.0100.08020.19
5.4.450.0270.04019.41
5.4.440.0230.04319.25
5.4.430.0230.04019.41
5.4.420.0170.04719.41
5.4.410.0330.03019.42
5.4.400.0370.06319.14
5.4.390.0330.03319.11
5.4.380.0230.04019.13
5.4.370.0270.03719.09
5.4.360.0370.07018.77
5.4.350.0270.06019.13
5.4.340.0230.04719.10
5.4.320.0330.07019.13
5.4.310.0330.04018.90
5.4.300.0300.07018.78
5.4.290.0270.05018.80
5.4.280.0400.06719.09
5.4.270.0370.05318.80
5.4.260.0400.07019.07
5.4.250.0230.04718.80
5.4.240.0270.05719.12
5.4.230.0370.04719.07
5.4.220.0230.04719.15
5.4.210.0400.02719.13
5.4.200.0330.07018.78
5.4.190.0270.04018.90
5.4.180.0370.03719.11
5.4.170.0230.03719.07
5.4.160.0270.07019.15
5.4.150.0270.03319.07
5.4.140.0200.03316.45
5.4.130.0230.03716.47
5.4.120.0270.05316.18
5.4.110.0200.03716.23
5.4.100.0230.05716.39
5.4.90.0230.04016.42
5.4.80.0170.04016.44
5.4.70.0300.05316.23
5.4.60.0270.03716.45
5.4.50.0230.04016.17
5.4.40.0270.07316.45
5.4.30.0300.03716.36
5.4.20.0230.04316.38
5.4.10.0400.04716.22
5.4.00.0470.05715.89
5.3.290.0300.05314.71
5.3.280.0300.05314.54
5.3.270.0330.07314.45
5.3.260.0330.03314.49
5.3.250.0230.03314.54
5.3.240.0270.04014.44
5.3.230.0330.06314.59
5.3.220.0100.04714.41
5.3.210.0200.03714.42
5.3.200.0300.05714.40
5.3.190.0130.04714.46
5.3.180.0300.06014.41
5.3.170.0200.03714.47
5.3.160.0300.05314.65
5.3.150.0230.03714.46
5.3.140.0270.04014.39
5.3.130.0270.07314.38
5.3.120.0300.04314.50
5.3.110.0230.04714.50
5.3.100.0200.05313.89
5.3.90.0300.04013.86
5.3.80.0230.04013.86
5.3.70.0370.05014.04
5.3.60.0300.07313.86
5.3.50.0470.02313.78
5.3.40.0330.04313.75
5.3.30.0330.07013.77
5.3.20.0370.06713.67
5.3.10.0330.06313.43
5.3.00.0400.03313.43
5.2.170.0270.04311.04
5.2.160.0270.05710.99
5.2.150.0270.03711.01
5.2.140.0200.03711.15
5.2.130.0330.02710.95
5.2.120.0230.02711.26
5.2.110.0230.03711.25
5.2.100.0170.04011.12
5.2.90.0270.02711.19
5.2.80.0230.03311.12
5.2.70.0330.05010.93
5.2.60.0270.04710.98
5.2.50.0200.03310.95
5.2.40.0170.03011.01
5.2.30.0170.03011.13
5.2.20.0230.02310.80
5.2.10.0230.05310.86
5.2.00.0330.04710.62
5.1.60.0230.0479.96
5.1.50.0200.02310.13
5.1.40.0200.0239.95
5.1.30.0200.02310.30
5.1.20.0200.04010.34
5.1.10.0100.0339.95
5.1.00.0170.0279.94
5.0.50.0230.0339.25
5.0.40.0070.0239.25
5.0.30.0130.0339.25
5.0.20.0130.0309.25
5.0.10.0170.0139.25
5.0.00.0130.0409.25
4.4.90.0170.0139.25
4.4.80.0100.0279.25
4.4.70.0130.0339.25
4.4.60.0130.0139.25
4.4.50.0100.0209.25
4.4.40.0130.0539.25
4.4.30.0100.0139.25
4.4.20.0130.0139.25
4.4.10.0130.0379.25
4.4.00.0070.0339.25
4.3.110.0130.0209.25
4.3.100.0100.0239.25
4.3.90.0130.0139.25
4.3.80.0130.0279.25
4.3.70.0170.0139.26
4.3.60.0130.0179.26
4.3.50.0130.0179.26
4.3.40.0070.0309.26
4.3.30.0070.0339.26
4.3.20.0100.0179.26
4.3.10.0100.0339.26
4.3.00.0070.0239.26

preferences:
72.58 ms | 401 KiB | 5 Q