3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a1=array("flagname"=>"LTV Under 50","b"=>"green"); $a2=array("flagname"=>"blue","b"=>"yellow"); print_r(array_merge($a1,$a2)); ?> </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.40.0150.00018.72
8.3.30.0110.00418.97
8.3.20.0070.00020.05
8.3.10.0080.00023.61
8.3.00.0080.00019.06
8.2.170.0100.00722.96
8.2.160.0070.00720.41
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.12
8.2.110.0060.00322.23
8.2.100.0060.00619.45
8.2.90.0000.00819.02
8.2.80.0000.00817.97
8.2.70.0030.00517.38
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00819.88
8.2.30.0000.00718.17
8.2.20.0090.00017.66
8.2.10.0070.00018.10
8.2.00.0060.00317.49
8.1.270.0000.00823.84
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00323.84
8.1.230.0040.00718.75
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0040.00417.00
8.1.180.0030.00518.83
8.1.170.0080.00018.27
8.1.160.0000.00821.95
8.1.150.0040.00418.46
8.1.140.0040.00417.29
8.1.130.0000.00717.77
8.1.120.0040.00417.30
8.1.110.0040.00417.41
8.1.100.0030.00617.33
8.1.90.0000.00817.27
8.1.80.0000.00717.30
8.1.70.0000.00717.38
8.1.60.0050.00317.53
8.1.50.0030.00517.31
8.1.40.0040.00417.35
8.1.30.0060.00317.40
8.1.20.0030.00617.48
8.1.10.0040.00417.51
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0030.00318.34
8.0.270.0040.00417.29
8.0.260.0000.00917.26
8.0.250.0000.00616.90
8.0.240.0070.00316.83
8.0.230.0000.00716.76
8.0.220.0000.00716.85
8.0.210.0040.00416.82
8.0.200.0000.00616.89
8.0.190.0030.00516.81
8.0.180.0040.00416.88
8.0.170.0000.00816.73
8.0.160.0000.00716.95
8.0.150.0000.00716.82
8.0.140.0040.00416.69
8.0.130.0030.00313.17
8.0.120.0030.00516.67
8.0.110.0000.00716.81
8.0.100.0060.00316.79
8.0.90.0040.00416.86
8.0.80.0070.01316.80
8.0.70.0000.00716.63
8.0.60.0080.00016.66
8.0.50.0040.00416.71
8.0.30.0150.00717.02
8.0.20.0150.00517.40
8.0.10.0070.00016.95
8.0.00.0130.00616.73
7.4.330.0020.00215.00
7.4.320.0000.00616.56
7.4.300.0040.00416.52
7.4.290.0030.00316.52
7.4.280.0040.00316.43
7.4.270.0040.00416.47
7.4.260.0030.00316.43
7.4.250.0000.00716.38
7.4.240.0010.00616.46
7.4.230.0030.00416.33
7.4.220.0040.01416.35
7.4.210.0050.00916.44
7.4.200.0030.00316.24
7.4.190.0040.00416.39
7.4.160.0060.00916.50
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0110.00616.35
7.4.120.0060.01316.50
7.4.110.0100.01316.33
7.4.100.0140.00316.42
7.4.90.0100.00716.39
7.4.80.0100.01319.39
7.4.70.0140.00316.63
7.4.60.0090.00816.34
7.4.50.0060.00316.20
7.4.40.0060.00916.59
7.4.30.0100.00616.35
7.4.00.0030.01314.57
7.3.330.0030.00313.11
7.3.320.0000.00512.93
7.3.310.0040.00416.13
7.3.300.0070.00016.18
7.3.290.0100.00416.09
7.3.280.0090.00916.10
7.3.270.0070.01017.40
7.3.260.0070.01016.23
7.3.250.0090.00816.18
7.3.240.0120.00916.05
7.3.230.0120.00316.39
7.3.210.0140.00316.38
7.3.200.0030.01519.39
7.3.190.0150.00416.39
7.3.180.0070.01016.01
7.3.170.0160.00616.39
7.3.160.0120.00316.29
7.3.120.0070.01014.72
7.3.110.0070.01014.89
7.3.100.0060.01214.79
7.3.90.0030.01014.51
7.3.80.0100.00314.64
7.3.70.0060.00614.69
7.3.60.0030.00714.38
7.3.50.0000.00814.76
7.3.40.0080.00414.71
7.3.30.0070.00714.48
7.3.20.0090.00316.71
7.3.10.0060.00616.65
7.3.00.0000.01316.62
7.2.330.0040.01616.46
7.2.320.0140.00716.69
7.2.310.0030.01416.34
7.2.300.0180.00416.51
7.2.290.0120.00616.45
7.2.250.0060.00914.91
7.2.240.0060.01214.84
7.2.230.0060.01215.03
7.2.220.0130.00314.88
7.2.210.0080.00814.86
7.2.200.0120.00614.64
7.2.190.0000.00914.78
7.2.180.0080.00414.58
7.2.170.0040.01114.89
7.2.00.0110.00419.31
7.1.330.0030.01515.77
7.1.320.0000.01115.70
7.1.310.0070.00715.85
7.1.300.0060.00915.54
7.1.290.0050.00315.78
7.1.280.0070.00715.71
7.1.270.0070.00315.68
7.1.260.0040.00915.71
7.1.200.0040.00715.71
7.1.100.0030.00718.05
7.1.70.0000.00717.20
7.1.60.0090.01219.46
7.1.50.0200.01334.51
7.1.00.0030.07722.31
7.0.200.0000.00816.45
7.0.140.0000.07721.96
7.0.60.0000.08719.97
7.0.50.0030.04317.88
7.0.40.0070.04320.06
7.0.30.0170.05320.34
7.0.20.0270.08720.33
7.0.10.0170.07720.01
7.0.00.0100.04020.03
5.6.280.0000.07720.79
5.6.210.0030.07720.50
5.6.200.0070.07018.16
5.6.190.0000.09720.45
5.6.180.0100.08720.56
5.6.170.0200.03720.52
5.6.160.0100.07320.41
5.6.150.0200.07018.20
5.6.140.0070.04018.11
5.6.130.0000.09018.18
5.6.120.0070.04720.98
5.6.110.0070.08321.00
5.6.100.0130.06320.88
5.6.90.0170.07321.09
5.6.80.0030.03720.37
5.5.350.0030.07020.29
5.5.340.0070.08317.89
5.5.330.0070.07720.43
5.5.320.0070.07320.17
5.5.310.0300.07020.16
5.5.300.0000.08317.95
5.5.290.0100.07317.94
5.5.280.0200.06720.97
5.5.270.0130.06020.75
5.5.260.0030.08320.78
5.5.250.0030.06320.65
5.5.240.0030.04020.26
5.4.450.0270.04719.57
5.4.440.0130.04719.41
5.4.430.0200.04319.50
5.4.420.0830.06719.56
5.4.410.1330.04719.35
5.4.400.0530.05318.83
5.4.390.1200.05319.17
5.4.380.0070.05718.65
5.4.370.0230.04018.48
5.4.360.0070.05718.53
5.4.350.0170.05318.67
5.4.340.0000.06318.73
5.4.320.0050.03612.45
5.4.310.0030.04312.45
5.4.300.0040.03812.45
5.4.290.0060.05012.45
5.4.280.0060.03512.34
5.4.270.0070.03412.34
5.4.260.0060.03612.35
5.4.250.0090.03412.34
5.4.240.0030.04012.34
5.4.230.0030.04212.34
5.4.220.0040.04612.34
5.4.210.0080.03712.34
5.4.200.0070.05612.34
5.4.190.0120.04112.34
5.4.180.0110.05012.33
5.4.170.0070.05712.35
5.4.160.0130.04512.34
5.4.150.0080.03712.34
5.4.140.0030.04012.02
5.4.130.0110.03112.01
5.4.120.0060.03511.97
5.4.110.0060.03811.96
5.4.100.0070.04111.96
5.4.90.0070.03811.96
5.4.80.0080.03711.96
5.4.70.0100.03211.96
5.4.60.0070.03511.96
5.4.50.0100.03911.96
5.4.40.0050.04111.95
5.4.30.0070.04511.95
5.4.20.0100.03711.95
5.4.10.0070.03511.95
5.4.00.0080.03411.43
5.3.290.0090.03712.80
5.3.280.0080.04312.71
5.3.270.0070.05712.72
5.3.260.0090.05612.72
5.3.250.0120.05112.71
5.3.240.0070.03812.72
5.3.230.0070.03812.71
5.3.220.0100.05212.68
5.3.210.0050.04412.68
5.3.200.0090.04412.68
5.3.190.0040.05812.68
5.3.180.0100.05712.67
5.3.170.0090.05412.66
5.3.160.0070.05812.67
5.3.150.0090.03812.67
5.3.140.0060.03912.66
5.3.130.0090.03812.66
5.3.120.0050.04212.65
5.3.110.0040.04312.66
5.3.100.0070.03612.12
5.3.90.0040.03912.09
5.3.80.0070.03612.07
5.3.70.0080.03612.08
5.3.60.0090.03512.06
5.3.50.0060.03812.00
5.3.40.0070.03812.00
5.3.30.0090.03311.94
5.3.20.0060.04011.72
5.3.10.0060.03611.69
5.3.00.0060.03511.68
5.2.170.0060.0299.18
5.2.160.0060.0289.18
5.2.150.0050.0319.18
5.2.140.0030.0329.17
5.2.130.0060.0279.13
5.2.120.0050.0299.13
5.2.110.0040.0309.14
5.2.100.0060.0279.14
5.2.90.0050.0299.13
5.2.80.0090.0259.14
5.2.70.0070.0279.13
5.2.60.0060.0289.09
5.2.50.0020.0319.05
5.2.40.0050.0289.04
5.2.30.0050.0299.01
5.2.20.0070.0259.00
5.2.10.0060.0268.92
5.2.00.0060.0418.77
5.1.60.0040.0308.06
5.1.50.0050.0318.05
5.1.40.0040.0258.04
5.1.30.0050.0278.39
5.1.20.0060.0338.41
5.1.10.0030.0298.14
5.1.00.0040.0278.14
5.0.50.0040.0216.62
5.0.40.0070.0186.48
5.0.30.0050.0446.29
5.0.20.0030.0246.26
5.0.10.0060.0176.24
5.0.00.0020.0316.23
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0040.0144.76
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0030.0254.70
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0020.0214.67
4.3.100.0020.0154.67
4.3.90.0020.0154.63
4.3.80.0030.0234.59
4.3.70.0020.0154.63
4.3.60.0020.0144.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0010.0163.28
4.3.20.0020.0163.26
4.3.10.0000.0173.21
4.3.00.0100.01712.20

preferences:
41.34 ms | 400 KiB | 5 Q