3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( 'test1' => array( '11', '22', '33', '44' ), 'test2' => array( '44', '55', '66', '77' ) ); $new = array(); $new2 = array(); foreach( $tests as $test ) { $new += array_values( $test ); $new2 = array_merge( $new2, $test ); } print_r($new); print_r($new2);

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.0170.00316.50
8.3.50.0140.00218.39
8.3.40.0060.00918.67
8.3.30.0090.00618.72
8.3.20.0050.00318.65
8.3.10.0030.00620.59
8.3.00.0050.00519.15
8.2.180.0100.01016.38
8.2.170.0120.00322.96
8.2.160.0000.01518.83
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.86
8.2.110.0040.00420.22
8.2.100.0110.00017.91
8.2.90.0040.00419.26
8.2.80.0080.00019.41
8.2.70.0060.00317.63
8.2.60.0040.00417.79
8.2.50.0000.00818.07
8.2.40.0050.00218.14
8.2.30.0040.00418.15
8.2.20.0000.01017.60
8.2.10.0080.00017.84
8.2.00.0040.00417.68
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.01428.09
8.1.240.0060.00323.77
8.1.230.0070.00420.89
8.1.220.0040.00418.77
8.1.210.0060.00319.11
8.1.200.0030.00616.98
8.1.190.0000.00817.51
8.1.180.0050.00318.10
8.1.170.0040.00418.74
8.1.160.0040.00418.80
8.1.150.0000.00718.48
8.1.140.0030.00517.40
8.1.130.0030.00317.87
8.1.120.0050.00217.43
8.1.110.0050.00317.42
8.1.100.0000.00717.37
8.1.90.0000.00717.47
8.1.80.0040.00417.47
8.1.70.0000.00717.38
8.1.60.0000.00717.48
8.1.50.0000.00817.41
8.1.40.0000.00717.50
8.1.30.0000.00817.57
8.1.20.0000.00817.50
8.1.10.0030.00617.43
8.1.00.0040.00417.34
8.0.300.0000.00919.91
8.0.290.0030.00616.63
8.0.280.0030.00318.41
8.0.270.0030.00317.12
8.0.260.0070.00016.84
8.0.250.0040.00417.07
8.0.240.0050.00317.01
8.0.230.0060.00016.91
8.0.220.0040.00416.92
8.0.210.0040.00416.83
8.0.200.0060.00317.03
8.0.190.0000.00717.02
8.0.180.0070.00017.01
8.0.170.0000.00816.79
8.0.160.0000.00716.96
8.0.150.0040.00416.86
8.0.140.0080.00016.75
8.0.130.0030.00313.42
8.0.120.0040.00416.88
8.0.110.0040.00416.98
8.0.100.0000.00717.03
8.0.90.0030.00516.90
8.0.80.0130.00316.94
8.0.70.0070.00017.01
8.0.60.0050.00216.75
8.0.50.0030.00616.98
8.0.30.0070.01417.07
8.0.20.0110.00817.13
8.0.10.0000.00816.94
8.0.00.0110.01316.77
7.4.330.0000.00513.00
7.4.320.0030.00316.57
7.4.300.0030.00316.46
7.4.290.0070.00016.58
7.4.280.0050.00316.59
7.4.270.0000.00816.62
7.4.260.0030.00313.25
7.4.250.0050.00316.46
7.4.240.0040.00416.65
7.4.230.0000.00716.66
7.4.220.0090.00816.54
7.4.210.0070.01316.48
7.4.200.0030.00316.70
7.4.190.0040.00416.64
7.4.160.0030.01316.61
7.4.150.0090.00916.62
7.4.140.0160.01016.42
7.4.130.0110.00716.41
7.4.120.0040.01216.43
7.4.110.0080.00816.54
7.4.100.0030.01316.51
7.4.90.0090.00916.40
7.4.80.0120.01219.39
7.4.70.0040.01216.61
7.4.60.0030.01316.44
7.4.50.0030.00616.40
7.4.40.0000.01816.52
7.4.30.0100.00716.30
7.4.00.0090.00515.06
7.3.330.0030.00313.07
7.3.320.0040.00413.07
7.3.310.0030.00316.20
7.3.300.0000.00616.25
7.3.290.0100.00716.27
7.3.280.0090.01116.22
7.3.270.0100.00716.72
7.3.260.0130.00416.57
7.3.250.0140.00716.36
7.3.240.0070.01316.66
7.3.230.0140.00316.22
7.3.210.0100.00616.50
7.3.200.0060.00916.39
7.3.190.0060.01016.38
7.3.180.0050.01116.63
7.3.170.0110.00616.31
7.3.160.0090.00916.42
7.3.120.0060.01014.65
7.3.110.0060.00915.04
7.3.100.0030.01314.54
7.3.90.0000.01814.90
7.3.80.0080.01214.78
7.3.70.0070.01114.82
7.3.60.0030.01015.00
7.3.50.0060.01014.89
7.3.40.0100.00714.86
7.3.30.0070.01014.74
7.3.20.0070.00716.41
7.3.10.0090.00516.64
7.3.00.0050.00916.75
7.2.330.0100.00616.67
7.2.320.0090.01216.46
7.2.310.0100.00716.71
7.2.300.0190.00416.77
7.2.290.0130.00316.48
7.2.250.0100.00714.80
7.2.240.0110.00914.68
7.2.230.0070.01015.27
7.2.220.0100.00615.09
7.2.210.0100.00715.12
7.2.200.0070.00714.78
7.2.190.0030.01314.77
7.2.180.0000.01915.23
7.2.170.0070.00415.13
7.2.130.0000.00916.99
7.2.120.0060.00616.85
7.2.110.0040.00816.96
7.2.100.0000.01417.04
7.2.90.0070.00716.96
7.2.80.0030.00616.73
7.2.70.0040.00816.84
7.2.60.0040.00817.10
7.2.50.0070.00317.08
7.2.40.0000.01717.00
7.2.30.0070.01117.08
7.2.20.0120.00017.00
7.2.10.0060.00916.95
7.2.00.0040.01118.22
7.1.330.0030.01015.83
7.1.320.0120.00315.85
7.1.310.0070.01115.95
7.1.300.0040.01515.87
7.1.290.0060.01215.92
7.1.280.0120.00416.00
7.1.270.0040.01115.77
7.1.260.0060.00715.54
7.1.250.0050.00515.65
7.1.200.0130.00015.84
7.1.100.0000.01418.22
7.1.70.0150.00317.23
7.1.60.0140.01019.30
7.1.50.0100.01016.98
7.1.00.0070.03022.29
7.0.200.0040.00416.50
7.0.140.0070.07022.04
7.0.120.0000.07721.96
7.0.60.0030.04719.85
7.0.50.0030.04318.03
7.0.40.0030.04720.13
7.0.30.0300.03020.26
7.0.20.0230.04320.12
7.0.10.0030.07320.06
7.0.00.0000.07020.32
5.6.280.0030.07320.90
5.6.210.0130.07320.60
5.6.200.0130.07318.15
5.6.190.0070.04320.63
5.6.180.0200.04720.45
5.6.170.0230.06720.48
5.6.160.0100.08020.39
5.6.150.0000.05318.28
5.6.140.0100.05018.18
5.6.130.0170.07318.18
5.6.120.0070.05321.00
5.6.110.0100.08021.10
5.6.100.0070.06021.13
5.6.90.0030.04721.07
5.6.80.0070.08320.39
5.5.350.0330.07320.38
5.5.340.0030.04018.04
5.5.330.0070.08720.21
5.5.320.0370.08020.36
5.5.310.0430.06720.25
5.5.300.0070.04717.91
5.5.290.0030.04318.00
5.5.280.0070.09020.88
5.5.270.0030.08020.86
5.5.260.0030.07320.75
5.5.250.0170.07720.58
5.5.240.0000.03320.03
5.4.450.0100.07019.47
5.4.440.0030.04019.47
5.4.430.0030.04019.50
5.4.420.0100.03319.52
5.4.410.0030.06019.34
5.4.400.0070.04019.01
5.4.390.0130.03019.14
5.4.380.0030.03719.25
5.4.370.0070.07019.14
5.4.360.0130.06018.85
5.4.350.0030.05018.98
5.4.340.0100.07018.92
5.4.320.0100.04318.95
5.4.310.0000.04719.24
5.4.300.0030.04019.14
5.4.290.0070.04318.86
5.4.280.0070.08019.23
5.4.270.0070.07318.96
5.4.260.0100.03319.11
5.4.250.0030.04719.23
5.4.240.0100.05718.86
5.4.230.0070.07318.84
5.4.220.0070.08018.91
5.4.210.0100.07018.84
5.4.200.0000.04018.84
5.4.190.0070.06319.15
5.4.180.0070.04019.13
5.4.170.0170.07018.86
5.4.160.0070.06319.12
5.4.150.0170.06719.22
5.4.140.0130.06316.29
5.4.130.0070.07716.38
5.4.120.0130.06316.45
5.4.110.0030.03716.40
5.4.100.0130.03716.29
5.4.90.0070.04316.29
5.4.80.0130.06316.41
5.4.70.0130.07016.51
5.4.60.0030.08716.39
5.4.50.0030.07316.38
5.4.40.0030.04016.39
5.4.30.0070.07716.64
5.4.20.0070.03716.44
5.4.10.0100.03316.49
5.4.00.0030.07315.77
5.3.290.0100.03314.71
5.3.280.0030.07714.51
5.3.270.0070.07314.52
5.3.260.0030.07314.65
5.3.250.0200.03714.59
5.3.240.0030.07314.62
5.3.230.0100.05714.65
5.3.220.0070.05314.48
5.3.210.0030.04014.70
5.3.200.0070.03714.45
5.3.190.0100.03714.63
5.3.180.0100.04714.57
5.3.170.0000.08314.57
5.3.160.0000.08014.59
5.3.150.0070.07314.70
5.3.140.0030.08014.61
5.3.130.0130.06014.54
5.3.120.0100.06314.54
5.3.110.0000.04314.68
5.3.100.0000.04314.10
5.3.90.0000.05014.01
5.3.80.0070.06014.05
5.3.70.0000.06013.96
5.3.60.0030.07314.03
5.3.50.0030.05013.83
5.3.40.0030.04713.97
5.3.30.0070.07313.90
5.3.20.0070.03713.69
5.3.10.0030.03713.72
5.3.00.0000.04013.59
5.2.170.0000.03711.21
5.2.160.0070.05011.30
5.2.150.0000.06711.18
5.2.140.0070.02711.03
5.2.130.0030.05311.16
5.2.120.0070.02711.25
5.2.110.0030.03311.09
5.2.100.0000.03311.05
5.2.90.0030.03011.10
5.2.80.0070.03011.00
5.2.70.0030.03011.06
5.2.60.0070.04011.11
5.2.50.0030.03010.97
5.2.40.0000.03311.00
5.2.30.0030.03010.98
5.2.20.0000.03010.95
5.2.10.0000.06310.74
5.2.00.0070.04010.74
5.1.60.0030.03310.02
5.1.50.0070.0279.89
5.1.40.0000.0439.96
5.1.30.0030.03710.29
5.1.20.0070.02710.40
5.1.10.0070.03710.04
5.1.00.0100.03010.03
5.0.50.0070.0178.51
5.0.40.0000.0278.25
5.0.30.0000.0578.17
5.0.20.0030.0438.15
5.0.10.0030.0438.25
5.0.00.0030.0378.14
4.4.90.0000.0207.63
4.4.80.0000.0177.63
4.4.70.0030.0177.63
4.4.60.0030.0137.63
4.4.50.0070.0337.63
4.4.40.0070.0537.63
4.4.30.0000.0377.63
4.4.20.0030.0177.63
4.4.10.0030.0177.63
4.4.00.0030.0477.63
4.3.110.0030.0207.63
4.3.100.0070.0207.63
4.3.90.0030.0237.63
4.3.80.0030.0507.63
4.3.70.0030.0377.63
4.3.60.0030.0207.63
4.3.50.0030.0377.63
4.3.40.0030.0437.63
4.3.30.0030.0337.63
4.3.20.0030.0337.63
4.3.10.0100.0177.63
4.3.00.0000.0237.63

preferences:
39.48 ms | 401 KiB | 5 Q