3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a1=(object) array("flagname"=>"LTV Under 50","b"=>"green"); $a2=(object) array("flagname"=>"blue","b"=>"yellow"); $a1 = array_merge((object)$a1,(object)$a2); print_r($a1); ?> </body> </html>

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.0160.00316.63
8.3.50.0070.00722.09
8.3.40.0090.00618.97
8.3.30.0040.01119.08
8.3.20.0000.00720.20
8.3.10.0040.00423.70
8.3.00.0080.00020.82
8.2.180.0110.00718.29
8.2.170.0160.00022.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0000.00819.12
8.2.110.0090.00022.07
8.2.100.0040.00817.78
8.2.90.0060.00619.09
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0000.00919.88
8.2.30.0040.00418.29
8.2.20.0040.00417.56
8.2.10.0040.00417.99
8.2.00.0070.00017.73
8.1.280.0070.00725.92
8.1.270.0030.00623.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00723.86
8.1.230.0040.00819.23
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.25
8.1.190.0040.00417.23
8.1.180.0040.00418.86
8.1.170.0000.00818.38
8.1.160.0070.00021.86
8.1.150.0040.00418.52
8.1.140.0080.00017.26
8.1.130.0030.00317.75
8.1.120.0030.00517.29
8.1.110.0070.00017.32
8.1.100.0020.00517.41
8.1.90.0030.00317.41
8.1.80.0050.00217.42
8.1.70.0070.00017.36
8.1.60.0000.00717.59
8.1.50.0000.00817.44
8.1.40.0070.00017.50
8.1.30.0000.00817.67
8.1.20.0030.00517.52
8.1.10.0050.00317.61
8.1.00.0070.00017.52
8.0.300.0030.00518.77
8.0.290.0040.00417.16
8.0.280.0000.00718.43
8.0.270.0050.00317.26
8.0.260.0030.00317.25
8.0.250.0070.00016.92
8.0.240.0000.00916.95
8.0.230.0000.00716.98
8.0.220.0040.00416.93
8.0.210.0030.00316.93
8.0.200.0030.00316.98
8.0.190.0030.00517.00
8.0.180.0000.00716.93
8.0.170.0040.00416.90
8.0.160.0030.00317.01
8.0.150.0000.01016.84
8.0.140.0000.00816.73
8.0.130.0000.00713.34
8.0.120.0080.00016.75
8.0.110.0050.00216.84
8.0.100.0000.00916.81
8.0.90.0040.00416.84
8.0.80.0030.01316.93
8.0.70.0040.00416.94
8.0.60.0000.00716.77
8.0.50.0050.00216.91
8.0.30.0090.00917.08
8.0.20.0090.00917.40
8.0.10.0050.00216.88
8.0.00.0060.01116.86
7.4.330.0050.00015.08
7.4.320.0070.00016.49
7.4.300.0030.00316.52
7.4.290.0030.00316.60
7.4.280.0000.00716.62
7.4.270.0030.00316.53
7.4.260.0030.00316.35
7.4.250.0000.00716.57
7.4.240.0050.00216.55
7.4.230.0000.00716.39
7.4.220.0180.00616.59
7.4.210.0080.00816.52
7.4.200.0050.00316.43
7.4.190.0000.00816.69
7.4.160.0100.01316.46
7.4.150.0090.01017.40
7.4.140.0100.00717.86
7.4.130.0070.01116.53
7.4.120.0050.01316.50
7.4.110.0130.01016.48
7.4.100.0130.00716.64
7.4.90.0070.01016.47
7.4.80.0140.00819.39
7.4.70.0070.01016.43
7.4.60.0090.00916.53
7.4.50.0000.00416.61
7.4.40.0130.00316.41
7.4.30.0000.01616.56
7.4.00.0070.01114.72
7.3.330.0000.00613.05
7.3.320.0060.00013.10
7.3.310.0080.00016.19
7.3.300.0020.00516.26
7.3.290.0150.00416.30
7.3.280.0050.01216.24
7.3.270.0060.00917.40
7.3.260.0100.01116.61
7.3.250.0120.00516.43
7.3.240.0130.01316.42
7.3.230.0120.00916.39
7.3.210.0160.00016.31
7.3.200.0100.00619.39
7.3.190.0060.01216.38
7.3.180.0080.00816.32
7.3.170.0050.01516.46
7.3.160.0060.00916.33
7.3.120.0070.01014.70
7.3.10.0180.00316.07
7.3.00.0130.01016.24
7.2.330.0110.00616.52
7.2.320.0100.00916.52
7.2.310.0130.00416.37
7.2.300.0030.01416.48
7.2.290.0030.01416.43
7.2.130.0190.00416.43
7.2.120.0250.00416.45
7.2.110.0160.00916.35
7.2.100.0170.00316.19
7.2.90.0230.00716.29
7.2.80.0060.01516.37
7.2.70.0200.00316.10
7.2.60.0100.01416.43
7.2.50.0180.01116.05
7.2.40.0120.01216.39
7.2.30.0280.00616.62
7.2.20.0040.01316.51
7.2.10.0140.00616.35
7.2.00.0140.00717.76
7.1.250.0080.01215.32
7.1.100.0090.00617.70
7.1.70.0000.00817.32
7.1.60.0110.01419.46
7.1.50.0240.01434.82
7.1.00.0070.07322.40
7.0.200.0070.00016.61
7.0.140.0030.07722.18
7.0.60.0070.07319.93
7.0.50.0070.03717.80
7.0.40.0030.06320.13
7.0.30.0370.06720.18
7.0.20.0400.05020.03
7.0.10.0000.06020.13
7.0.00.0100.06020.16
5.6.280.0030.07020.81
5.6.210.0070.07020.62
5.6.200.0030.05018.12
5.6.190.0030.05720.67
5.6.180.0000.04320.67
5.6.170.0270.04720.41
5.6.160.0170.05720.40
5.6.150.0100.07018.14
5.6.140.0030.05318.21
5.6.130.0070.04018.17
5.6.120.0000.04321.00
5.6.110.0070.07321.00
5.6.100.0030.08721.01
5.6.90.0100.07321.09
5.6.80.0130.07320.27
5.5.350.0000.04020.34
5.5.340.0070.08017.92
5.5.330.0070.08320.21
5.5.320.0070.05720.21
5.5.310.0300.08020.23
5.5.300.0030.08718.02
5.5.290.0070.05317.95
5.5.280.0170.03720.79
5.5.270.0070.05720.79
5.5.260.0100.04020.86
5.5.250.0100.06020.57
5.5.240.0070.07320.28
5.4.450.0330.04319.53
5.4.440.0300.03719.37
5.4.430.0370.05719.35
5.4.420.0970.06719.53
5.4.410.1030.06319.32
5.4.400.0900.06019.17
5.4.390.0900.04719.12
5.4.380.0130.05318.72
5.4.370.0230.04318.73
5.4.360.0130.05018.61
5.4.350.0130.05718.50
5.4.340.0030.06018.80
5.4.320.0060.03712.45
5.4.310.0060.05112.45
5.4.300.0090.04312.45
5.4.290.0140.06312.45
5.4.280.0110.05812.35
5.4.270.0090.05712.34
5.4.260.0120.05612.35
5.4.250.0110.06012.34
5.4.240.0050.06812.34
5.4.230.0080.07412.34
5.4.220.0120.08812.34
5.4.210.0100.06012.34
5.4.200.0060.08312.34
5.4.190.0080.07312.34
5.4.180.0100.06312.33
5.4.170.0130.07412.35
5.4.160.0100.06612.34
5.4.150.0110.06912.34
5.4.140.0120.06812.02
5.4.130.0070.06612.01
5.4.120.0110.05811.97
5.4.110.0150.06911.96
5.4.100.0070.05511.96
5.4.90.0090.05911.96
5.4.80.0120.06511.96
5.4.70.0080.06411.96
5.4.60.0120.05611.96
5.4.50.0170.07211.96
5.4.40.0100.06311.95
5.4.30.0160.06511.95
5.4.20.0170.07811.95
5.4.10.0190.07611.94
5.4.00.0170.08711.44
5.3.290.0110.04012.80
5.3.280.0140.07812.71
5.3.270.0140.08612.73
5.3.260.0130.07212.72
5.3.250.0140.07812.71
5.3.240.0160.10612.72
5.3.230.0150.05112.70
5.3.220.0130.06112.68
5.3.210.0090.07712.68
5.3.200.0190.06312.68
5.3.190.0240.11512.68
5.3.180.0170.05312.67
5.3.170.0080.08612.67
5.3.160.0170.08312.67
5.3.150.0120.06812.68
5.3.140.0220.08912.66
5.3.130.0180.08812.66
5.3.120.0260.09312.66
5.3.110.0230.07812.66
5.3.100.0140.07612.12
5.3.90.0110.07212.09
5.3.80.0110.06912.07
5.3.70.0110.06812.07
5.3.60.0070.05612.06
5.3.50.0070.05612.00
5.3.40.0200.07812.00
5.3.30.0170.07111.95
5.3.20.0100.05611.73
5.3.10.0100.05111.69
5.3.00.0040.04311.68
5.2.170.0080.0559.18
5.2.160.0120.0469.18
5.2.150.0190.0489.18
5.2.140.0090.0629.17
5.2.130.0060.0669.14
5.2.120.0170.0529.14
5.2.110.0100.0519.14
5.2.100.0060.0559.14
5.2.90.0120.0609.14
5.2.80.0100.0739.14
5.2.70.0090.0559.14
5.2.60.0200.0779.09
5.2.50.0110.0689.05
5.2.40.0090.0589.03
5.2.30.0110.0699.01
5.2.20.0050.0479.00
5.2.10.0100.0448.92
5.2.00.0060.0458.77
5.1.60.0110.0338.06
5.1.50.0050.0378.06
5.1.40.0070.0358.04
5.1.30.0090.0248.39
5.1.20.0100.0548.41
5.1.10.0060.0348.13
5.1.00.0070.0368.13
5.0.50.0030.0306.61
5.0.40.0060.0276.47
5.0.30.0110.0636.29
5.0.20.0070.0446.26
5.0.10.0070.0326.23
5.0.00.0030.0486.23
4.4.90.0030.0244.78
4.4.80.0050.0394.75
4.4.70.0070.0514.75
4.4.60.0080.0334.75
4.4.50.0040.0234.77
4.4.40.0090.0604.71
4.4.30.0060.0304.76
4.4.20.0050.0274.85
4.4.10.0060.0234.84
4.4.00.0040.0304.76
4.3.110.0050.0234.67
4.3.100.0050.0154.66
4.3.90.0050.0164.63
4.3.80.0030.0284.58
4.3.70.0020.0164.63
4.3.60.0010.0174.63
4.3.50.0030.0174.63
4.3.40.0020.0264.54
4.3.30.0000.0183.29
4.3.20.0020.0163.26
4.3.10.0010.0173.22
4.3.00.0070.01312.57

preferences:
50.48 ms | 401 KiB | 5 Q