3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('0' => '0A', '1' => '1A'); $b = array('0' => '0B', '4' => '4B', '2' => '2B'); $c = array('0' => '0C', '3' => '3C', '2' => '2C'); $options = $a + $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.0110.01118.43
8.3.50.0140.00121.92
8.3.40.0140.00318.59
8.3.30.0150.00418.79
8.3.20.0040.00420.22
8.3.10.0000.00921.96
8.3.00.0080.00017.68
8.2.180.0110.00817.92
8.2.170.0140.00322.96
8.2.160.0000.01322.31
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0060.00320.89
8.2.110.0060.00321.05
8.2.100.0040.00717.91
8.2.90.0000.00817.90
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0000.00819.89
8.2.30.0040.00417.91
8.2.20.0000.00817.73
8.2.10.0040.00417.92
8.2.00.0080.00017.61
8.1.280.0070.01025.92
8.1.270.0080.00023.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.41
8.1.230.0070.00420.85
8.1.220.0030.00517.79
8.1.210.0000.00818.91
8.1.200.0100.00317.13
8.1.190.0000.00717.11
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0040.00422.00
8.1.150.0050.00318.85
8.1.140.0030.00617.43
8.1.130.0030.00317.82
8.1.120.0050.00217.23
8.1.110.0000.00817.34
8.1.100.0000.00717.28
8.1.90.0030.00417.42
8.1.80.0000.00717.41
8.1.70.0030.00317.28
8.1.60.0040.00417.49
8.1.50.0040.00417.43
8.1.40.0040.00417.36
8.1.30.0000.00817.50
8.1.20.0040.00417.49
8.1.10.0000.00717.45
8.1.00.0040.00417.40
8.0.300.0040.00419.91
8.0.290.0060.00316.75
8.0.280.0000.00718.25
8.0.270.0030.00317.16
8.0.260.0070.00017.17
8.0.250.0040.00416.93
8.0.240.0040.00416.95
8.0.230.0070.00016.89
8.0.220.0030.00316.78
8.0.210.0080.00016.90
8.0.200.0060.00016.89
8.0.190.0070.00016.84
8.0.180.0000.00716.95
8.0.170.0040.00416.79
8.0.160.0030.00316.88
8.0.150.0070.00016.88
8.0.140.0000.00716.86
8.0.130.0050.00013.33
8.0.120.0040.00416.83
8.0.110.0040.00416.89
8.0.100.0070.00016.87
8.0.90.0000.00716.87
8.0.80.0070.00716.83
8.0.70.0050.00316.89
8.0.60.0040.00416.87
8.0.50.0040.00416.71
8.0.30.0150.00617.20
8.0.20.0120.00717.40
8.0.10.0070.00016.84
8.0.00.0120.00816.59
7.4.330.0050.00015.09
7.4.320.0030.00316.43
7.4.300.0030.00316.46
7.4.290.0070.00016.39
7.4.280.0070.00016.35
7.4.270.0040.00416.45
7.4.260.0070.00016.30
7.4.250.0030.00316.47
7.4.240.0050.00216.44
7.4.230.0030.00316.23
7.4.220.0070.01016.61
7.4.210.0070.00716.48
7.4.200.0070.00016.52
7.4.160.0090.00616.39
7.4.150.0090.00917.40
7.4.140.0140.00317.86
7.4.130.0060.01316.22
7.4.120.0110.00916.50
7.4.110.0040.01416.39
7.4.100.0030.01416.49
7.4.90.0080.00816.50
7.4.80.0090.01219.39
7.4.70.0150.00516.44
7.4.60.0000.01716.34
7.4.50.0030.00516.25
7.4.40.0140.00416.33
7.4.30.0050.01116.33
7.4.00.0040.01414.91
7.3.330.0050.00013.18
7.3.320.0000.00512.87
7.3.310.0000.00716.32
7.3.300.0000.00716.23
7.3.290.0110.00916.19
7.3.280.0090.00916.19
7.3.270.0130.00317.40
7.3.260.0200.00016.44
7.3.240.0070.01016.33
7.3.230.0030.01316.46
7.3.210.0070.01016.21
7.3.200.0140.00319.39
7.3.190.0110.00716.35
7.3.180.0130.00316.09
7.3.170.0100.00616.27
7.3.160.0090.00616.51
7.3.120.0170.00014.90
7.2.330.0170.00716.49
7.2.320.0130.00716.66
7.2.310.0130.00316.28
7.2.300.0070.01016.59
7.2.290.0030.01316.50
7.2.00.0080.00819.35
7.1.100.0130.00717.24
7.1.70.0030.00317.19
7.1.60.0130.00319.25
7.1.50.0070.01416.81
7.1.00.0070.07022.31
7.0.200.0040.00416.63
7.0.140.0070.06721.97
7.0.60.0030.04020.01
7.0.50.0070.08017.83
7.0.40.0100.03719.96
7.0.30.0170.07020.06
7.0.20.0230.05020.06
7.0.10.0070.05720.09
7.0.00.0030.04720.08
5.6.210.0130.07320.59
5.6.200.0100.08318.16
5.6.190.0030.08320.41
5.6.180.0230.03720.66
5.6.170.0230.08020.47
5.6.160.0170.07020.48
5.6.150.0030.06318.14
5.6.140.0070.08018.23
5.6.130.0030.04018.13
5.6.120.0130.08020.99
5.6.110.0030.04021.04
5.6.100.0070.08321.00
5.6.90.0070.08720.96
5.6.80.0130.06320.39
5.5.350.3800.05720.41
5.5.340.0070.06317.92
5.5.330.0130.06320.27
5.5.320.0300.07020.32
5.5.310.0230.06020.23
5.5.300.0130.07317.96
5.5.290.0030.08718.05
5.5.280.0030.08720.89
5.5.270.0000.06320.64
5.5.260.0100.08020.88
5.5.250.0070.08020.58
5.5.240.0230.07020.11
5.4.450.0300.07319.54
5.4.440.0330.07019.57
5.4.430.0270.04019.41
5.4.420.0370.04719.48
5.4.410.0470.06019.42
5.4.400.0370.07318.98
5.4.390.0330.08019.09
5.4.380.0270.04719.21
5.4.370.0330.07019.11
5.4.360.0330.07319.14
5.4.350.0330.04018.96
5.4.340.0370.06019.20
5.4.320.0300.05718.85
5.4.310.0330.07019.24
5.4.300.0300.06019.09
5.4.290.0330.04319.09
5.4.280.0400.05719.25
5.4.270.0430.05719.03
5.4.260.0300.05018.96
5.4.250.0400.04318.98
5.4.240.0500.05319.15
5.4.230.0330.05019.07
5.4.220.0370.06719.08
5.4.210.0300.04019.19
5.4.200.0470.04019.30
5.4.190.0370.05019.17
5.4.180.0470.06319.04
5.4.170.0370.05319.21
5.4.160.0430.04719.19
5.4.150.0270.07019.09
5.4.140.0300.05016.52
5.4.130.0270.05016.45
5.4.120.0370.05016.52
5.4.110.0300.03316.55
5.4.100.0430.06316.55
5.4.90.0400.03716.45
5.4.80.0370.06316.54
5.4.70.0270.07016.32
5.4.60.0300.04716.54
5.4.50.0430.05716.53
5.4.40.0330.04316.39
5.4.30.0300.03716.53
5.4.20.0270.04716.32
5.4.10.0300.07316.23
5.4.00.0400.04315.80
5.3.290.0300.05014.77
5.3.280.0270.03714.63
5.3.270.0370.06014.71
5.3.260.0330.05714.75
5.3.250.0370.06314.64
5.3.240.0330.07014.51
5.3.230.0300.04714.51
5.3.220.0330.05014.47
5.3.210.0330.03314.55
5.3.200.0270.04714.47
5.3.190.0300.05014.56
5.3.180.0370.06714.64
5.3.170.0370.04314.45
5.3.160.0270.06014.64
5.3.150.0400.06714.57
5.3.140.0330.04314.45
5.3.130.0300.03714.66
5.3.120.0370.07014.55
5.3.110.0300.05714.51
5.3.100.0330.07314.14
5.3.90.0370.07014.02
5.3.80.0270.04314.00
5.3.70.0300.04714.12
5.3.60.0230.04014.07
5.3.50.0270.03713.94
5.3.40.0400.06713.91
5.3.30.0370.05013.83
5.3.20.0370.04713.92
5.3.10.0430.05713.77
5.3.00.0370.05713.64
5.2.170.0300.03711.30
5.2.160.0270.04711.07
5.2.150.0330.05711.30
5.2.140.0300.04011.05
5.2.130.0230.03311.18
5.2.120.0300.03311.26
5.2.110.0300.05711.11
5.2.100.0300.03311.05
5.2.90.0230.02711.01
5.2.80.0300.05710.97
5.2.70.0330.04711.00
5.2.60.0400.05010.95
5.2.50.0300.05311.02
5.2.40.0300.05010.95
5.2.30.0170.04010.97
5.2.20.0170.04710.86
5.2.10.0170.03310.93
5.2.00.0200.03310.71
5.1.60.0200.02310.65
5.1.50.0130.03010.65
5.1.40.0370.02010.65
5.1.30.0200.02710.65
5.1.20.0170.02710.65
5.1.10.0200.03010.65
5.1.00.0130.03010.65
5.0.50.0100.04310.65
5.0.40.0200.02010.65
5.0.30.0170.06010.65
5.0.20.0100.04310.65
5.0.10.0130.02710.65
5.0.00.0130.06010.65
4.4.90.0130.01710.65
4.4.80.0200.02710.65
4.4.70.0130.01710.65
4.4.60.0170.03010.65
4.4.50.0130.02310.65
4.4.40.0100.02310.65
4.4.30.0100.01310.65
4.4.20.0070.01710.65
4.4.10.0070.01710.65
4.4.00.0170.03310.65
4.3.110.0170.01710.65
4.3.100.0100.02010.65
4.3.90.0100.03310.65
4.3.80.0170.04710.65
4.3.70.0100.01710.65
4.3.60.0130.01710.65
4.3.50.0070.02310.65
4.3.40.0100.05010.65
4.3.30.0100.03010.65
4.3.20.0100.03310.65
4.3.10.0130.01310.65
4.3.00.0100.01310.65

preferences:
45.14 ms | 401 KiB | 5 Q