3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = ["apple" => "bla", "peer" => "bleh"]; $arr2 = ["apple" => "foo", "bar" => "baz"]; $arr1Keys = array_keys($arr1); $arr2Keys = array_keys($arr2); $totalKeys = array_merge($arr1Keys, $arr2Keys); var_dump($arr1Keys, $arr2Keys, $totalKeys);

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.70.0120.00616.58
8.3.60.0090.00618.31
8.3.50.0130.00522.77
8.3.40.0120.00318.46
8.3.30.0090.00618.95
8.3.20.0040.00420.16
8.3.10.0050.00323.46
8.3.00.0040.00419.13
8.2.180.0060.00917.97
8.2.170.0070.01022.96
8.2.160.0040.01120.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00421.04
8.2.110.0030.00620.54
8.2.100.0080.00318.03
8.2.90.0050.00219.17
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00718.04
8.2.50.0040.00718.07
8.2.40.0000.00818.03
8.2.30.0020.00519.30
8.2.20.0040.00417.65
8.2.10.0040.00417.96
8.2.00.0040.00417.74
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0000.00923.95
8.1.230.0070.00419.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00317.00
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0080.00018.39
8.1.160.0000.00721.86
8.1.150.0000.00818.86
8.1.140.0040.00417.42
8.1.130.0070.00017.72
8.1.120.0030.00417.33
8.1.110.0040.00417.30
8.1.100.0070.00017.35
8.1.90.0070.00017.44
8.1.80.0000.00717.42
8.1.70.0030.00317.27
8.1.60.0000.00817.48
8.1.50.0030.00617.40
8.1.40.0050.00317.39
8.1.30.0000.00817.45
8.1.20.0000.00717.43
8.1.10.0080.00017.45
8.1.00.0050.00217.26
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.38
8.0.270.0030.00317.17
8.0.260.0030.00317.25
8.0.250.0030.00316.87
8.0.240.0080.00016.77
8.0.230.0040.00416.90
8.0.220.0000.00716.79
8.0.210.0000.00716.65
8.0.200.0000.00616.84
8.0.190.0030.00516.86
8.0.180.0040.00416.79
8.0.170.0020.00516.88
8.0.160.0070.00016.78
8.0.150.0080.00016.79
8.0.140.0030.00516.82
8.0.130.0030.00313.34
8.0.120.0040.00416.79
8.0.110.0000.00716.81
8.0.100.0000.00716.73
8.0.90.0040.00416.77
8.0.80.0100.00916.77
8.0.70.0050.00216.83
8.0.60.0040.00416.85
8.0.50.0070.00016.86
8.0.30.0090.01016.99
8.0.20.0180.01217.40
8.0.10.0040.00416.75
8.0.00.0070.01016.75
7.4.330.0000.00515.02
7.4.320.0030.00316.45
7.4.300.0020.00516.52
7.4.290.0040.00416.34
7.4.280.0110.00016.42
7.4.270.0000.00716.37
7.4.260.0030.00316.51
7.4.250.0020.00516.50
7.4.240.0040.00416.49
7.4.230.0000.00716.59
7.4.220.0110.00716.64
7.4.210.0000.01416.42
7.4.200.0040.00416.33
7.4.160.0060.00916.43
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0110.00616.30
7.4.120.0080.01016.37
7.4.110.0140.00316.39
7.4.100.0090.01216.19
7.4.90.0040.01216.62
7.4.80.0100.00719.39
7.4.70.0080.00816.55
7.4.60.0120.00616.27
7.4.50.0000.00816.64
7.4.40.0080.00916.38
7.4.30.0080.00816.50
7.4.00.0060.00915.13
7.3.330.0000.00612.98
7.3.320.0000.00512.85
7.3.310.0070.00016.17
7.3.300.0070.00016.13
7.3.290.0040.01216.24
7.3.280.0080.00916.16
7.3.270.0140.00317.40
7.3.260.0170.00416.18
7.3.250.0130.00516.26
7.3.240.0100.00616.42
7.3.230.0040.01316.39
7.3.210.0070.01016.06
7.3.200.0030.01419.39
7.3.190.0170.00416.34
7.3.180.0100.00716.23
7.3.170.0000.01616.27
7.3.160.0090.00916.37
7.2.330.0090.00916.27
7.2.320.0150.00416.61
7.2.310.0070.01316.54
7.2.300.0140.00916.31
7.2.290.0060.01016.33
7.1.70.0000.00716.87
7.1.60.0070.01019.46
7.1.50.0060.01916.91
7.1.00.0070.07322.48
7.0.200.0080.00016.79
7.0.140.0030.07322.12
7.0.60.0070.05720.01
7.0.50.0030.04017.80
7.0.40.0100.04720.27
7.0.30.0330.07320.16
7.0.20.0370.07020.04
7.0.10.0070.05720.00
7.0.00.0030.09020.17
5.6.280.0030.07320.77
5.6.210.0200.07020.74
5.6.200.0030.05018.08
5.6.190.0030.08020.64
5.6.180.0270.07720.45
5.6.170.0370.06720.51
5.6.160.0070.08720.41
5.6.150.0030.05318.18
5.6.140.0000.04718.18
5.6.130.0100.08018.11
5.6.120.0070.07321.02
5.6.110.0100.08021.13
5.6.100.0030.04721.10
5.6.90.0000.04320.96
5.6.80.0100.07020.52
5.5.350.0170.04320.38
5.5.340.0030.05317.98
5.5.330.0030.07320.40
5.5.320.0300.07320.29
5.5.310.0300.05020.28
5.5.300.0100.07317.91
5.5.290.0070.08018.02
5.5.280.0000.04320.76
5.5.270.0070.06720.86
5.5.260.0070.06320.72
5.5.250.0030.06720.68
5.5.240.0100.07320.18
5.4.450.1370.04719.13
5.4.440.0330.05019.47
5.4.430.0630.04019.40
5.4.420.0300.04319.13
5.4.410.0400.03719.29
5.4.400.0370.03019.07
5.4.390.0100.03719.10
5.4.380.0530.04718.72
5.4.370.0270.06718.49
5.4.360.0300.05318.68
5.4.350.0330.05718.70
5.4.340.0230.05718.50
5.4.320.0090.04012.45
5.4.310.0090.03612.45
5.4.300.0050.03812.45
5.4.290.0050.03812.45
5.4.280.0080.03212.35
5.4.270.0030.03812.34
5.4.260.0060.03812.34
5.4.250.0040.03912.34
5.4.240.0050.03612.34
5.4.230.0040.03912.34
5.4.220.0100.03312.34
5.4.210.0050.03712.34
5.4.200.0080.04712.34
5.4.190.0040.03712.33
5.4.180.0070.03412.34
5.4.170.0070.03412.34
5.4.160.0030.03712.34
5.4.150.0030.03812.34
5.4.140.0080.03412.02
5.4.130.0030.03712.01
5.4.120.0040.03611.97
5.4.110.0050.03511.96
5.4.100.0050.03511.96
5.4.90.0050.03811.96
5.4.80.0060.03911.96
5.4.70.0040.03411.96
5.4.60.0050.03711.96
5.4.50.0050.03511.96
5.4.40.0060.03311.95
5.4.30.0070.03411.95
5.4.20.0030.03711.95
5.4.10.0050.03511.95
5.4.00.0030.03911.44
5.3.290.0080.03812.80
5.3.280.0090.03512.71
5.3.270.0070.04712.72
5.3.260.0050.03912.72
5.3.250.0050.03812.72
5.3.240.0040.03912.72
5.3.230.0050.03712.70
5.3.220.0060.03612.68
5.3.210.0050.03912.68
5.3.200.0040.03712.68
5.3.190.0050.04812.68
5.3.180.0030.03812.68
5.3.170.0040.03712.67
5.3.160.0040.03712.67
5.3.150.0070.03512.67
5.3.140.0090.03912.66
5.3.130.0090.03912.66
5.3.120.0060.03812.66
5.3.110.0060.04212.66
5.3.100.0040.03812.12
5.3.90.0050.03612.08
5.3.80.0050.03512.07
5.3.70.0030.03812.07
5.3.60.0040.03712.06
5.3.50.0040.03612.00
5.3.40.0050.03612.00
5.3.30.0040.03511.95
5.3.20.0030.03711.73
5.3.10.0040.03511.70
5.3.00.0070.03411.68
5.2.170.0010.0339.18
5.2.160.0040.0289.18
5.2.150.0030.0319.18
5.2.140.0060.0289.18
5.2.130.0050.0279.14
5.2.120.0040.0289.14
5.2.110.0030.0299.15
5.2.100.0020.0309.14
5.2.90.0030.0299.14
5.2.80.0050.0289.14
5.2.70.0060.0279.14
5.2.60.0030.0309.09
5.2.50.0050.0289.05
5.2.40.0050.0279.03
5.2.30.0040.0299.02
5.2.20.0040.0289.01
5.2.10.0020.0308.93
5.2.00.0010.0318.78
5.1.60.0050.0228.07
5.1.50.0050.0228.06
5.1.40.0050.0238.04
5.1.30.0070.0238.40
5.1.20.0040.0268.41
5.1.10.0030.0268.14
5.1.00.0040.0258.14
5.0.50.0050.0196.62
5.0.40.0030.0196.48
5.0.30.0070.0346.29
5.0.20.0010.0216.27
5.0.10.0030.0196.24
5.0.00.0030.0336.23
4.4.90.0000.0184.78
4.4.80.0040.0144.76
4.4.70.0030.0164.75
4.4.60.0020.0194.75
4.4.50.0050.0164.77
4.4.40.0010.0264.71
4.4.30.0050.0124.76
4.4.20.0060.0164.85
4.4.10.0070.0164.85
4.4.00.0050.0224.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0010.0154.63
4.3.80.0010.0254.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0010.0173.29
4.3.20.0010.0173.25
4.3.10.0020.0153.22
4.3.00.0370.03316.04

preferences:
36.63 ms | 401 KiB | 5 Q