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(), 5, 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.70.0130.00616.50
8.3.60.0100.01018.36
8.3.50.0260.00221.93
8.3.40.0170.00018.75
8.3.30.0070.00719.11
8.3.20.0050.00220.04
8.3.10.0000.00822.09
8.3.00.0080.00022.55
8.2.190.0090.00616.63
8.2.180.0100.00716.63
8.2.170.0110.00422.96
8.2.160.0030.01020.75
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0000.00921.90
8.2.100.0000.01217.66
8.2.90.0000.00819.27
8.2.80.0050.00317.97
8.2.70.0030.00717.63
8.2.60.0000.00717.93
8.2.50.0050.00318.07
8.2.40.0000.00918.03
8.2.30.0040.00417.89
8.2.20.0000.00717.48
8.2.10.0000.00819.39
8.2.00.0040.00417.53
8.1.280.0110.00425.92
8.1.270.0080.00022.06
8.1.260.0040.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0120.00319.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.13
8.1.190.0040.00417.41
8.1.180.0030.00518.10
8.1.170.0040.00418.34
8.1.160.0000.00721.93
8.1.150.0070.00318.49
8.1.140.0060.00317.37
8.1.130.0000.00717.86
8.1.120.0000.00717.36
8.1.110.0040.00417.39
8.1.100.0040.00417.35
8.1.90.0030.00517.36
8.1.80.0040.00417.39
8.1.70.0000.00717.27
8.1.60.0030.00617.48
8.1.50.0080.00017.45
8.1.40.0040.00417.33
8.1.30.0000.00817.52
8.1.20.0040.00417.49
8.1.10.0040.00417.50
8.1.00.0000.00717.38
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0000.00818.35
8.0.270.0030.00317.17
8.0.260.0030.00316.74
8.0.250.0000.00716.90
8.0.240.0000.00716.84
8.0.230.0000.00716.78
8.0.220.0030.00316.82
8.0.210.0000.00716.83
8.0.200.0000.00616.76
8.0.190.0070.00016.77
8.0.180.0030.00416.87
8.0.170.0040.00416.90
8.0.160.0000.00716.83
8.0.150.0070.00016.75
8.0.140.0030.00616.77
8.0.130.0030.00313.28
8.0.120.0030.00516.80
8.0.110.0050.00216.72
8.0.100.0040.00416.79
8.0.90.0000.00816.72
8.0.80.0120.00816.77
8.0.70.0000.00716.81
8.0.60.0070.00016.61
8.0.50.0000.00716.80
8.0.30.0070.01316.84
8.0.20.0140.01417.40
8.0.10.0000.00817.05
8.0.00.0070.01416.65
7.4.330.0020.00215.03
7.4.320.0000.00616.53
7.4.300.0060.00016.51
7.4.290.0030.00316.43
7.4.280.0040.00416.42
7.4.270.0030.00316.49
7.4.260.0070.00316.40
7.4.250.0000.00716.35
7.4.240.0020.00516.54
7.4.230.0000.00716.42
7.4.220.0110.00616.48
7.4.210.0080.00716.57
7.4.200.0030.00316.63
7.4.190.0040.00416.57
7.4.160.0080.00816.55
7.4.150.0140.00317.40
7.4.140.0190.02017.86
7.4.130.0140.00816.33
7.4.120.0140.00416.36
7.4.110.0080.00816.40
7.4.100.0110.00616.48
7.4.90.0090.00916.58
7.4.80.0040.01419.39
7.4.70.0030.01416.38
7.4.60.0120.01216.24
7.4.50.0000.00716.48
7.4.40.0060.00922.77
7.4.30.0140.00316.36
7.4.00.0030.01214.92
7.3.330.0000.00512.87
7.3.320.0030.00313.04
7.3.310.0000.00715.97
7.3.300.0030.00316.03
7.3.290.0050.00916.12
7.3.280.0050.01216.12
7.3.270.0100.00617.40
7.3.260.0200.00316.29
7.3.250.0090.01116.32
7.3.240.0090.01316.24
7.3.230.0130.00616.39
7.3.210.0030.01416.07
7.3.200.0080.01119.39
7.3.190.0170.00516.27
7.3.180.0120.00316.39
7.3.170.0130.00916.27
7.3.160.0040.01116.28
7.3.120.0150.00314.91
7.2.330.0030.01416.46
7.2.320.0040.01416.17
7.2.310.0120.00616.50
7.2.300.0050.01116.43
7.2.290.0090.00616.50
7.2.00.0000.01419.32
7.1.100.0050.00518.08
7.1.70.0070.00317.00
7.1.60.0030.02319.82
7.1.50.0070.01416.80
7.1.00.0070.07022.43
7.0.200.0000.01016.63
7.0.140.0000.08021.95
7.0.60.0100.03320.04
7.0.50.0130.07717.82
7.0.40.0030.07020.11
7.0.30.0370.07320.16
7.0.20.0270.03020.14
7.0.10.0100.08720.24
7.0.00.0130.08320.12
5.6.280.0100.07021.12
5.6.210.0100.08320.66
5.6.200.0000.04318.18
5.6.190.0030.08720.50
5.6.180.4870.04020.50
5.6.170.0230.07720.61
5.6.160.0030.04720.39
5.6.150.0030.04018.28
5.6.140.0030.07018.23
5.6.130.0070.08718.27
5.6.120.0130.05721.02
5.6.110.0100.03320.91
5.6.100.0100.08721.00
5.6.90.0030.04321.10
5.6.80.0030.03720.35
5.6.70.4430.03320.46
5.5.350.0130.03320.47
5.5.340.0030.04317.98
5.5.330.0100.09020.56
5.5.320.3100.03720.30
5.5.310.0230.04720.26
5.5.300.0000.05718.08
5.5.290.0130.04018.08
5.5.280.0200.02720.76
5.5.270.0030.05720.78
5.5.260.0100.08020.78
5.5.250.0130.06020.76
5.5.240.0200.07320.26
5.4.450.0100.05719.64
5.4.440.0770.06719.32
5.4.430.0630.06319.14
5.4.420.0800.05319.47
5.4.410.0600.06019.04
5.4.400.0830.05719.28
5.4.390.0670.05718.94
5.4.380.0330.05018.61
5.4.370.0170.05018.50
5.4.360.0170.05318.83
5.4.350.0100.06018.54
5.4.340.0230.04318.74
5.4.320.0060.03612.49
5.4.310.0090.03912.48
5.4.300.0050.03712.48
5.4.290.0070.03712.48
5.4.280.0070.03512.38
5.4.270.0050.03612.34
5.4.260.0080.04212.34
5.4.250.0050.03912.34
5.4.240.0050.03712.34
5.4.230.0030.04012.34
5.4.220.0050.03712.34
5.4.210.0080.03312.34
5.4.200.0060.03812.34
5.4.190.0070.03512.34
5.4.180.0070.03512.34
5.4.170.0080.04412.34
5.4.160.0050.03712.34
5.4.150.0020.04212.34
5.4.140.0090.03412.02
5.4.130.0040.03912.01
5.4.120.0050.03811.96
5.4.110.0090.04111.96
5.4.100.0100.03711.96
5.4.90.0080.03611.96
5.4.80.0120.03911.96
5.4.70.0080.04311.96
5.4.60.0090.04711.95
5.4.50.0070.03511.96
5.4.40.0050.03611.95
5.4.30.0060.03511.94
5.4.20.0050.03511.95
5.4.10.0070.03411.94
5.4.00.0050.03711.44
5.3.290.0070.04512.80
5.3.280.0040.04012.71
5.3.270.0010.04412.73
5.3.260.0050.04112.72
5.3.250.0070.03812.72
5.3.240.0100.03412.72
5.3.230.0070.03712.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0070.03612.68
5.3.190.0090.04012.68
5.3.180.0070.03912.67
5.3.170.0030.04412.67
5.3.160.0070.03912.67
5.3.150.0060.03812.67
5.3.140.0090.03412.66
5.3.130.0080.03812.66
5.3.120.0090.03812.66
5.3.110.0080.05312.66
5.3.100.0080.04412.12
5.3.90.0070.03512.08
5.3.80.0090.03312.07
5.3.70.0080.03512.07
5.3.60.0060.03612.06
5.3.50.0070.03512.00
5.3.40.0070.03612.00
5.3.30.0120.02911.94
5.3.20.0050.03711.73
5.3.10.0070.03911.68
5.3.00.0100.04411.68
5.2.170.0060.0329.18
5.2.160.0100.0249.18
5.2.150.0060.0299.18
5.2.140.0060.0299.18
5.2.130.0020.0329.13
5.2.120.0030.0309.13
5.2.110.0060.0289.13
5.2.100.0100.0239.14
5.2.90.0070.0369.13
5.2.80.0030.0329.13
5.2.70.0070.0289.13
5.2.60.0040.0309.08
5.2.50.0060.0289.05
5.2.40.0050.0299.03
5.2.30.0040.0339.00
5.2.20.0100.0238.99
5.2.10.0040.0298.90
5.2.00.0060.0278.76
5.1.60.0010.0278.05
5.1.50.0050.0248.05
5.1.40.0040.0258.04
5.1.30.0040.0268.38
5.1.20.0070.0238.41
5.1.10.0060.0248.13
5.1.00.0040.0278.12
5.0.50.0060.0186.60
5.0.40.0010.0226.46
5.0.30.0050.0396.28
5.0.20.0040.0186.25
5.0.10.0060.0176.23
5.0.00.0060.0316.22
4.4.90.0030.0154.78
4.4.80.0050.0134.75
4.4.70.0030.0154.75
4.4.60.0030.0154.76
4.4.50.0030.0164.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0050.0134.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0040.0144.67
4.3.90.0030.0154.64
4.3.80.0020.0254.58
4.3.70.0060.0124.63
4.3.60.0040.0134.63
4.3.50.0000.0184.63
4.3.40.0050.0284.53
4.3.30.0050.0163.28
4.3.20.0020.0173.27
4.3.10.0030.0143.23
4.3.00.0030.0206.95

preferences:
40.36 ms | 401 KiB | 5 Q