3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array("a"=>1,"b"=>1,"c"=>1,"e"=>1); $b=array("a"=>5,"b"=>6,"c"=>7,"e"=>8); print_r(array_pad(array(), 0, "")); //print_r(array_combine(array_keys($a),array_values($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.01118.18
8.3.50.0120.00321.99
8.3.40.0110.00418.69
8.3.30.0090.00618.98
8.3.20.0050.00320.04
8.3.10.0000.00721.92
8.3.00.0000.00922.43
8.2.180.0040.01816.38
8.2.170.0040.01122.96
8.2.160.0110.00420.87
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.23
8.2.110.0030.00620.91
8.2.100.0070.00417.72
8.2.90.0030.00717.62
8.2.80.0050.00517.97
8.2.70.0080.00018.03
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0030.00618.09
8.2.30.0000.00717.86
8.2.20.0000.00717.48
8.2.10.0090.00019.31
8.2.00.0080.00017.66
8.1.280.0030.01025.92
8.1.270.0000.00822.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.09
8.1.230.0070.00422.17
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00918.66
8.1.160.0000.00721.98
8.1.150.0060.00318.56
8.1.140.0040.00417.34
8.1.130.0000.00717.83
8.1.120.0070.00017.30
8.1.110.0020.00517.39
8.1.100.0040.00417.21
8.1.90.0050.00217.23
8.1.80.0040.00417.34
8.1.70.0000.00717.35
8.1.60.0040.00417.41
8.1.50.0080.00017.38
8.1.40.0040.00417.36
8.1.30.0030.00617.51
8.1.20.0050.00317.58
8.1.10.0000.00717.32
8.1.00.0000.00717.35
8.0.300.0040.00419.73
8.0.290.0000.00716.63
8.0.280.0040.00418.28
8.0.270.0070.00017.23
8.0.260.0000.00816.73
8.0.250.0030.00316.79
8.0.240.0000.00716.91
8.0.230.0070.00016.79
8.0.220.0040.00416.79
8.0.210.0030.00516.78
8.0.200.0070.00016.93
8.0.190.0000.00716.83
8.0.180.0000.00716.84
8.0.170.0050.00216.84
8.0.160.0070.00016.77
8.0.150.0000.00716.82
8.0.140.0000.00816.67
8.0.130.0000.00513.25
8.0.120.0080.00016.80
8.0.110.0070.00016.86
8.0.100.0070.00016.88
8.0.90.0000.00716.68
8.0.80.0110.01116.82
8.0.70.0000.00716.70
8.0.60.0050.00316.71
8.0.50.0070.00016.66
8.0.30.0080.01016.94
8.0.20.0120.01217.40
8.0.10.0040.00416.79
8.0.00.0110.01116.67
7.4.330.0050.00015.03
7.4.320.0000.00616.50
7.4.300.0000.00616.52
7.4.290.0030.00316.39
7.4.280.0040.00416.50
7.4.270.0000.00716.42
7.4.260.0070.00416.27
7.4.250.0000.00716.40
7.4.240.0000.00716.38
7.4.230.0000.00716.50
7.4.220.0030.01416.44
7.4.210.0070.00716.51
7.4.200.0030.00316.27
7.4.190.0000.00716.57
7.4.160.0120.00416.28
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0110.00916.35
7.4.120.0070.01016.55
7.4.110.0100.01016.40
7.4.100.0080.00916.48
7.4.90.0070.01016.31
7.4.80.0100.01219.39
7.4.70.0170.00316.39
7.4.60.0090.00816.39
7.4.50.0040.00416.25
7.4.40.0090.00622.77
7.4.30.0090.00616.36
7.4.00.0030.01214.81
7.3.330.0050.00013.02
7.3.320.0060.00012.88
7.3.310.0040.00416.14
7.3.300.0030.00316.16
7.3.290.0120.00316.11
7.3.280.0120.00916.14
7.3.270.0070.01017.40
7.3.260.0060.01216.36
7.3.250.0130.00516.38
7.3.240.0090.00916.14
7.3.230.0060.01316.39
7.3.210.0100.01016.30
7.3.200.0160.00819.39
7.3.190.0190.00316.02
7.3.180.0000.01816.24
7.3.170.0060.01616.29
7.3.160.0060.00916.20
7.3.120.0060.01014.73
7.3.110.0080.00714.39
7.3.100.0080.00714.58
7.3.90.0050.01114.85
7.3.80.0000.01214.60
7.3.70.0070.00514.58
7.3.60.0020.01214.83
7.3.50.0070.00514.66
7.3.40.0060.00814.59
7.3.30.0070.00614.65
7.3.20.0070.00616.41
7.3.10.0070.00316.43
7.3.00.0020.01116.46
7.2.330.0140.00316.48
7.2.320.0110.00716.52
7.2.310.0100.00616.55
7.2.300.0120.00916.52
7.2.290.0100.01016.23
7.2.250.0060.01414.59
7.2.240.0050.01314.90
7.2.230.0040.01114.67
7.2.220.0030.00914.70
7.2.210.0050.00914.85
7.2.200.0050.00914.85
7.2.190.0070.00914.74
7.2.180.0110.00214.82
7.2.170.0110.00414.70
7.2.00.0030.00919.33
7.1.330.0090.00415.58
7.1.320.0060.00715.77
7.1.310.0040.01015.81
7.1.300.0100.00415.58
7.1.290.0030.00915.63
7.1.280.0060.00815.60
7.1.270.0050.00715.58
7.1.260.0040.01015.69
7.1.100.0080.00318.05
7.1.70.0060.01016.92
7.1.60.0070.01419.82
7.1.50.0000.01116.62
7.1.00.0070.07322.37
7.0.200.0000.00816.66
7.0.140.0030.07322.18
7.0.60.0100.07319.82
7.0.50.0130.07317.75
7.0.40.0070.09020.31
7.0.30.0270.07020.20
7.0.20.0230.04020.00
7.0.10.0300.08020.01
7.0.00.0070.09019.99
5.6.280.0100.08721.11
5.6.210.0000.07320.54
5.6.200.0070.07018.09
5.6.190.0070.04720.67
5.6.180.2770.04720.49
5.6.170.0300.06020.38
5.6.160.0070.04720.50
5.6.150.0100.07318.19
5.6.140.0070.06318.09
5.6.130.0100.07318.18
5.6.120.0070.03720.96
5.6.110.0070.08020.95
5.6.100.0070.05320.95
5.6.90.0100.07720.93
5.6.80.0130.06720.36
5.6.70.0370.07020.39
5.5.350.0030.08320.41
5.5.340.0030.04018.02
5.5.330.0030.04720.38
5.5.320.0270.06720.18
5.5.310.0230.06720.18
5.5.300.0130.03318.02
5.5.290.0030.05717.94
5.5.280.0100.06720.88
5.5.270.0030.07320.89
5.5.260.0170.07320.79
5.5.250.0170.07720.66
5.5.240.0000.06020.21
5.4.450.1030.04019.13
5.4.440.0930.04319.39
5.4.430.0870.00019.25
5.4.420.1070.00019.25
5.4.410.0070.06319.01
5.4.400.0200.04318.72
5.4.390.0070.05318.50
5.4.380.0230.06018.77
5.4.370.0170.05018.61
5.4.360.0100.06018.75
5.4.350.0300.04018.64
5.4.340.0230.04318.64
5.4.320.0100.03912.46
5.4.310.0060.03812.45
5.4.300.0100.05212.45
5.4.290.0070.03712.45
5.4.280.0090.03612.35
5.4.270.0060.04112.32
5.4.260.0070.04012.32
5.4.250.0070.03712.32
5.4.240.0040.04012.32
5.4.230.0070.03712.31
5.4.220.0040.03912.30
5.4.210.0070.03412.31
5.4.200.0070.03712.31
5.4.190.0040.03812.30
5.4.180.0040.03712.31
5.4.170.0060.03612.32
5.4.160.0050.03612.31
5.4.150.0080.03412.30
5.4.140.0050.03811.99
5.4.130.0050.03811.98
5.4.120.0050.03611.94
5.4.110.0060.03511.93
5.4.100.0050.03611.93
5.4.90.0050.03811.93
5.4.80.0080.04411.93
5.4.70.0080.03911.93
5.4.60.0040.03811.93
5.4.50.0070.03511.93
5.4.40.0060.03511.92
5.4.30.0090.03311.91
5.4.20.0090.04011.91
5.4.10.0050.03811.92
5.4.00.0040.03811.40
5.3.290.0040.04312.80
5.3.280.0040.04012.71
5.3.270.0060.04012.72
5.3.260.0100.03512.72
5.3.250.0040.03812.72
5.3.240.0060.03712.72
5.3.230.0060.03712.71
5.3.220.0100.03312.68
5.3.210.0080.03712.68
5.3.200.0050.03712.68
5.3.190.0050.03812.67
5.3.180.0020.04112.67
5.3.170.0090.04612.67
5.3.160.0090.03612.68
5.3.150.0060.04112.68
5.3.140.0070.03612.66
5.3.130.0050.03912.66
5.3.120.0090.03812.65
5.3.110.0040.04312.66
5.3.100.0080.04012.12
5.3.90.0030.04012.08
5.3.80.0050.03712.07
5.3.70.0060.03512.07
5.3.60.0030.03912.07
5.3.50.0050.03812.00
5.3.40.0070.03512.00
5.3.30.0100.03111.94
5.3.20.0040.03911.70
5.3.10.0050.03611.66
5.3.00.0060.03511.65
5.2.170.0050.0309.15
5.2.160.0090.0249.15
5.2.150.0050.0299.15
5.2.140.0060.0289.15
5.2.130.0060.0349.11
5.2.120.0090.0379.11
5.2.110.0020.0429.11
5.2.100.0040.0359.11
5.2.90.0090.0389.11
5.2.80.0070.0399.10
5.2.70.0060.0379.09
5.2.60.0050.0309.06
5.2.50.0050.0309.03
5.2.40.0060.0289.00
5.2.30.0070.0288.98
5.2.20.0040.0308.96
5.2.10.0040.0328.89
5.2.00.0050.0308.75
5.1.60.0120.0278.04
5.1.50.0080.0258.04
5.1.40.0110.0208.02
5.1.30.0100.0218.37
5.1.20.0050.0268.40
5.1.10.0030.0278.12
5.1.00.0030.0278.11
5.0.50.0030.0266.59
5.0.40.0050.0186.45
5.0.30.0030.0326.27
5.0.20.0040.0216.24
5.0.10.0070.0256.22
5.0.00.0060.0386.21
4.4.90.0040.0204.78
4.4.80.0020.0174.75
4.4.70.0040.0194.75
4.4.60.0030.0184.75
4.4.50.0020.0184.77
4.4.40.0020.0274.70
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0050.0304.76
4.3.110.0110.0114.66
4.3.100.0070.0124.66
4.3.90.0050.0144.64
4.3.80.0100.0204.58
4.3.70.0050.0154.63
4.3.60.0020.0154.63
4.3.50.0010.0184.63
4.3.40.0030.0294.54
4.3.30.0030.0203.28
4.3.20.0010.0223.26
4.3.10.0030.0173.21
4.3.00.0170.01713.28

preferences:
50.08 ms | 400 KiB | 5 Q