3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('0' => '0A', '1' => '1A', '2' => '2A'); $b = array('0' => '0B', '4' => '4B', '2' => '2B'); $c = array('0' => '0C', '3' => '3C', '2' => '2C'); $options = $c + $b; print_r($options);

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.0090.00618.18
8.3.50.0100.00821.99
8.3.40.0100.00718.57
8.3.30.0100.00318.79
8.3.20.0040.00420.28
8.3.10.0070.00021.94
8.3.00.0040.00417.90
8.2.180.0120.00318.43
8.2.170.0110.00422.96
8.2.160.0070.00722.13
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0140.00026.16
8.2.120.0040.00420.94
8.2.110.0060.00320.88
8.2.100.0000.01217.91
8.2.90.0000.00817.97
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0000.00717.87
8.2.20.0000.00817.74
8.2.10.0040.00418.05
8.2.00.0030.00617.73
8.1.280.0140.00425.92
8.1.270.0030.00623.86
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00922.54
8.1.230.0040.00720.95
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.01217.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00518.38
8.1.160.0030.00621.85
8.1.150.0050.00218.85
8.1.140.0000.00917.28
8.1.130.0000.00717.74
8.1.120.0070.00017.27
8.1.110.0040.00417.42
8.1.100.0040.00417.27
8.1.90.0000.00717.21
8.1.80.0070.00017.29
8.1.70.0000.00717.36
8.1.60.0000.00817.51
8.1.50.0000.00717.51
8.1.40.0040.00417.42
8.1.30.0000.00917.56
8.1.20.0070.00017.52
8.1.10.0030.00517.34
8.1.00.0040.00417.43
8.0.300.0070.00019.74
8.0.290.0000.00816.75
8.0.280.0080.00018.25
8.0.270.0030.00317.11
8.0.260.0030.00317.24
8.0.250.0000.00716.95
8.0.240.0000.00716.97
8.0.230.0070.00016.99
8.0.220.0000.00716.80
8.0.210.0070.00016.79
8.0.200.0000.00616.82
8.0.190.0040.00416.85
8.0.180.0040.00416.89
8.0.170.0020.00516.91
8.0.160.0030.00416.71
8.0.150.0030.00316.91
8.0.140.0070.00016.77
8.0.130.0000.00613.41
8.0.120.0040.00416.86
8.0.110.0070.00016.93
8.0.100.0000.00816.75
8.0.90.0000.00716.75
8.0.80.0060.00916.90
8.0.70.0000.00716.77
8.0.60.0040.00416.86
8.0.50.0040.00416.94
8.0.30.0130.00617.10
8.0.20.0100.00917.40
8.0.10.0030.00317.04
8.0.00.0050.01216.72
7.4.330.0050.00015.14
7.4.320.0030.00316.51
7.4.300.0070.00016.35
7.4.290.0000.00716.45
7.4.280.0040.00416.55
7.4.270.0000.00716.45
7.4.260.0070.00016.53
7.4.250.0030.00516.41
7.4.240.0030.00416.38
7.4.230.0030.00316.34
7.4.220.0110.01016.30
7.4.210.0070.00716.56
7.4.200.0030.00316.62
7.4.160.0080.00816.32
7.4.150.0180.00317.40
7.4.140.0100.00717.86
7.4.130.0120.00616.37
7.4.120.0080.00916.51
7.4.110.0110.00616.28
7.4.100.0140.00316.44
7.4.90.0000.01716.51
7.4.80.0060.01219.39
7.4.70.0100.01016.54
7.4.60.0030.01316.54
7.4.50.0080.00016.01
7.4.40.0080.00816.36
7.4.30.0080.00816.41
7.4.00.0070.01014.82
7.3.330.0020.00213.12
7.3.320.0000.00512.94
7.3.310.0000.00716.13
7.3.300.0070.00016.19
7.3.290.0070.01316.25
7.3.280.0070.01116.21
7.3.270.0060.01217.40
7.3.260.0120.00816.58
7.3.250.0030.01616.18
7.3.240.0040.01116.24
7.3.230.0080.00816.39
7.3.210.0100.01016.41
7.3.200.0070.01019.39
7.3.190.0150.00416.27
7.3.180.0000.01616.16
7.3.170.0070.00916.37
7.3.160.0100.00716.64
7.3.120.0070.01014.71
7.2.330.0160.00716.46
7.2.320.0070.01416.56
7.2.310.0100.00616.25
7.2.300.0000.01616.63
7.2.290.0060.01016.54
7.2.00.0130.00319.16
7.1.100.0210.00417.50
7.1.70.0040.00417.14
7.1.60.0070.01419.25
7.1.50.0030.01716.86
7.1.00.0000.08022.27
7.0.200.0000.00916.72
7.0.140.0030.06722.03
7.0.60.0100.05721.64
7.0.50.0070.08017.83
7.0.40.0070.04720.25
7.0.30.0230.04720.25
7.0.20.0330.04720.12
7.0.10.0000.05020.15
7.0.00.0130.05020.08
5.6.280.0000.07720.81
5.6.210.0070.08020.72
5.6.200.0170.04018.18
5.6.190.0170.07320.34
5.6.180.3270.04020.63
5.6.170.0230.07020.71
5.6.160.0030.04020.54
5.6.150.0070.08318.29
5.6.140.0000.04318.15
5.6.130.0130.07318.15
5.6.120.0070.06720.98
5.6.110.0100.06720.99
5.6.100.0100.07720.98
5.6.90.0070.08720.96
5.6.80.0070.06720.32
5.5.350.0300.06720.40
5.5.340.0000.04318.07
5.5.330.0070.07720.27
5.5.320.0370.06720.23
5.5.310.0100.04320.35
5.5.300.0100.07018.01
5.5.290.0130.08018.04
5.5.280.0100.06320.77
5.5.270.0100.03320.79
5.5.260.0070.04320.89
5.5.250.0030.09020.59
5.5.240.0070.07320.15
5.4.450.0800.06019.38
5.4.440.0670.06319.50
5.4.430.0700.05719.20
5.4.420.0570.06019.64
5.4.410.0070.05718.70
5.4.400.0630.05018.79
5.4.390.0500.06318.72
5.4.380.0230.04318.79
5.4.370.0070.05018.62
5.4.360.0070.05318.52
5.4.350.0080.04412.00
5.4.340.0090.03912.00
5.4.320.0050.04212.49
5.4.310.0050.04112.48
5.4.300.0080.04312.48
5.4.290.0080.04012.48
5.4.280.0060.04012.38
5.4.270.0060.03812.38
5.4.260.0110.04212.38
5.4.250.0050.04312.38
5.4.240.0080.03412.38
5.4.230.0060.03812.37
5.4.220.0050.03712.37
5.4.210.0070.03512.37
5.4.200.0080.03612.37
5.4.190.0030.04012.36
5.4.180.0080.03312.36
5.4.170.0040.03812.38
5.4.160.0060.03912.37
5.4.150.0110.04112.37
5.4.140.0070.04712.05
5.4.130.0060.04212.04
5.4.120.0050.03712.00
5.4.110.0090.04012.00
5.4.100.0030.04112.00
5.4.90.0090.03512.00
5.4.80.0080.03411.99
5.4.70.0060.03411.99
5.4.60.0090.03511.99
5.4.50.0070.03511.99
5.4.40.0060.04211.98
5.4.30.0060.04111.98
5.4.20.0080.03211.98
5.4.10.0050.04211.98
5.4.00.0060.03511.47
5.3.290.0080.03712.80
5.3.280.0100.04112.70
5.3.270.0060.04512.72
5.3.260.0070.04412.71
5.3.250.0040.03812.72
5.3.240.0090.04012.72
5.3.230.0030.04212.71
5.3.220.0050.03812.68
5.3.210.0060.03912.68
5.3.200.0050.04612.68
5.3.190.0070.03712.68
5.3.180.0090.03812.67
5.3.170.0060.04012.67
5.3.160.0050.03712.68
5.3.150.0060.03712.67
5.3.140.0080.03512.66
5.3.130.0040.04112.66
5.3.120.0060.03912.66
5.3.110.0090.03912.66
5.3.100.0110.03112.12
5.3.90.0080.03612.09
5.3.80.0080.03812.08
5.3.70.0070.04212.08
5.3.60.0050.03912.06
5.3.50.0110.04412.01
5.3.40.0060.03912.01
5.3.30.0090.03711.97
5.3.20.0070.03811.75
5.3.10.0060.03411.71
5.3.00.0070.04511.70
5.2.170.0050.0379.20
5.2.160.0070.0359.20
5.2.150.0060.0359.20
5.2.140.0040.0379.20
5.2.130.0050.0319.16
5.2.120.0040.0359.16
5.2.110.0050.0399.17
5.2.100.0080.0319.17
5.2.90.0040.0309.17
5.2.80.0080.0329.16
5.2.70.0070.0369.16
5.2.60.0030.0379.11
5.2.50.0070.0299.08
5.2.40.0060.0289.06
5.2.30.0070.0369.04
5.2.20.0060.0359.03
5.2.10.0060.0358.93
5.2.00.0070.0378.79
5.1.60.0060.0268.07
5.1.50.0040.0298.06
5.1.40.0040.0258.04
5.1.30.0050.0308.39
5.1.20.0060.0308.41
5.1.10.0070.0298.14
5.1.00.0040.0288.14
5.0.50.0070.0256.61
5.0.40.0050.0216.47
5.0.30.0070.0326.29
5.0.20.0050.0186.26
5.0.10.0030.0246.23
5.0.00.0030.0326.23
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0040.0184.75
4.4.60.0000.0184.75
4.4.50.0040.0154.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0194.85
4.4.10.0040.0164.85
4.4.00.0040.0264.76
4.3.110.0030.0174.67
4.3.100.0030.0164.67
4.3.90.0030.0154.64
4.3.80.0060.0224.58
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0040.0174.63
4.3.40.0020.0274.54
4.3.30.0030.0183.28
4.3.20.0020.0193.26
4.3.10.0050.0143.21
4.3.00.0030.0207.13

preferences:
44.95 ms | 401 KiB | 5 Q