3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => array( 0 => '', 1 => 'Man', 2 => '<p class=" td26">', 3 => '<p class=" td26">', 4 => '<p class=" td26">', 5 => 'Mining'), 1 => array ( 0 => '', 1 => 'Abc', 2 => '<p class="tr1 td26"><p class=" td26">', 3 => 'Ahsan', 4 => '<p class="tr1 td26"><p class=" td26">', 5 => 'mm', 6 => '<p class="tr1 td26"><p class=" td26">', 7 => 'oo', 8 => '<p class="tr1 td26"><p class=" td26">', 9 => 'kk', 10 => '<p class="tr1 td26"><p class=" td26">'), 2 => array ( 0 => 'Fical', 1 => '2005-06', 2 => '2006-07', 3 => '2007-08', 4 => '2008-09', 5 => '2009-10', 6 => '2010-11', 7 => '2011-12', 8 => '2012-13', 9 => 'Change', 10 => 'Change2' ) ); foreach ($d as $k => $v) { if (($v == '') && ($k !== 0)) { $d[$k] .= "\n<p class=\" td26\">"; $d[$k - 1] .= "<p class=\"tr3 td26\">"; // K-1 for previous index } } foreach ($g as $k => $v) { if (($v == '') && ($k !== 0)) { $g[$k] .= "<p class=\" td26\">"; //$g[$k-1].="<p class=\" td26\">" ; } }

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.00718.55
8.3.50.0120.00822.05
8.3.40.0140.00018.56
8.3.30.0030.01018.95
8.3.20.0000.00720.29
8.3.10.0070.00021.95
8.3.00.0000.00822.45
8.2.180.0140.00716.63
8.2.170.0110.00422.96
8.2.160.0100.00320.94
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0150.00026.16
8.2.120.0040.00417.63
8.2.110.0060.00322.20
8.2.100.0120.00017.84
8.2.90.0040.00418.98
8.2.80.0080.00018.03
8.2.70.0040.00417.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0020.00518.10
8.2.20.0060.00317.75
8.2.10.0040.00417.64
8.2.00.0030.00717.62
8.1.280.0070.01125.92
8.1.270.0090.00021.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.70
8.1.230.0040.00819.12
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0050.00317.41
8.1.180.0040.00418.65
8.1.170.0050.00318.56
8.1.160.0000.00722.02
8.1.150.0030.00518.55
8.1.140.0000.00717.38
8.1.130.0030.00617.75
8.1.120.0000.00717.37
8.1.110.0060.00317.46
8.1.100.0000.00717.46
8.1.90.0070.00017.52
8.1.80.0070.00017.49
8.1.70.0000.00717.38
8.1.60.0000.01017.43
8.1.50.0000.00817.40
8.1.40.0040.00417.57
8.1.30.0000.00817.49
8.1.20.0050.00217.66
8.1.10.0040.00417.31
8.1.00.0020.00517.41
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0040.00418.50
8.0.270.0000.00717.18
8.0.260.0040.00416.89
8.0.250.0030.00617.03
8.0.240.0070.00316.91
8.0.230.0000.00716.91
8.0.220.0040.00416.96
8.0.210.0030.00316.98
8.0.200.0030.00316.95
8.0.190.0040.00417.06
8.0.180.0030.00917.02
8.0.170.0030.00516.90
8.0.160.0040.00417.04
8.0.150.0030.00316.81
8.0.140.0030.00616.81
8.0.130.0000.00513.36
8.0.120.0000.00816.91
8.0.110.0000.00716.85
8.0.100.0040.00416.98
8.0.90.0040.00416.92
8.0.80.0100.00716.98
8.0.70.0040.00417.00
8.0.60.0040.00416.82
8.0.50.0000.00716.92
8.0.30.0060.01417.07
8.0.20.0110.00817.40
8.0.10.0000.00716.95
8.0.00.0100.01016.60
7.4.330.0000.00515.04
7.4.320.0060.00016.53
7.4.300.0030.00316.64
7.4.290.0000.00716.51
7.4.280.0000.00716.60
7.4.270.0040.00416.60
7.4.260.0000.00816.45
7.4.250.0040.00416.47
7.4.240.0020.00516.57
7.4.230.0070.00016.63
7.4.220.0120.00616.70
7.4.210.0120.00416.58
7.4.200.0030.00316.71
7.4.190.0050.00216.46
7.4.160.0130.00316.55
7.4.150.0120.00617.40
7.4.140.0170.00517.86
7.4.130.0070.01116.38
7.4.120.0050.01316.52
7.4.110.0100.00716.55
7.4.100.0150.00316.51
7.4.90.0110.00716.53
7.4.80.0030.01519.39
7.4.70.0060.01016.43
7.4.60.0110.00716.33
7.4.50.0040.00416.57
7.4.40.0080.00622.77
7.4.30.0090.00616.50
7.4.00.0040.01214.88
7.3.330.0050.00013.17
7.3.320.0000.00613.00
7.3.310.0030.00316.27
7.3.300.0030.00316.30
7.3.290.0060.00816.31
7.3.280.0100.00516.24
7.3.270.0150.00917.40
7.3.260.0120.00416.42
7.3.250.0100.00816.42
7.3.240.0090.00916.31
7.3.230.0070.01016.44
7.3.210.0160.00616.25
7.3.200.0060.01519.39
7.3.190.0130.00916.41
7.3.180.0070.01016.51
7.3.170.0110.00716.27
7.3.160.0120.00316.36
7.3.120.0000.01014.70
7.2.330.0040.01516.44
7.2.320.0000.01716.68
7.2.310.0110.00716.40
7.2.300.0130.01016.48
7.2.290.0130.00716.31
7.2.80.0030.00916.33
7.2.60.0150.00016.49
7.2.50.0090.00616.57
7.1.200.0000.01515.47
7.1.70.0030.00317.02
7.1.60.0130.01319.82
7.1.50.0140.01016.95
7.1.00.0070.07322.44
7.0.200.0090.00416.69
7.0.140.0070.07022.07
7.0.100.0100.08019.95
7.0.90.0100.07319.99
7.0.80.0070.08019.91
7.0.70.0170.07319.91
7.0.60.0030.09019.89
7.0.50.0070.04020.26
7.0.40.0100.07720.10
7.0.30.0100.07720.08
7.0.20.0100.04320.04
7.0.10.0070.08019.94
7.0.00.0170.07720.04
5.6.280.0070.07020.86
5.6.250.0070.07320.61
5.6.240.0200.07320.58
5.6.230.0130.07720.70
5.6.220.0170.06720.57
5.6.210.0170.06320.65
5.6.200.0030.05021.04
5.6.190.0030.10021.09
5.6.180.0000.08721.00
5.6.170.0130.07721.05
5.6.160.0030.05020.96
5.6.150.0030.04321.10
5.6.140.0130.06320.96
5.6.130.0100.05021.08
5.6.120.0100.08021.07
5.6.110.0070.08321.08
5.6.100.0070.08021.13
5.6.90.0030.09320.99
5.6.80.0070.08320.56
5.6.70.0100.06320.35
5.6.60.0100.07720.38
5.6.50.0100.08020.43
5.6.40.0170.06720.33
5.6.30.0070.07720.54
5.6.20.0070.08320.42
5.6.10.0170.07320.32
5.6.00.0100.07720.45
5.5.380.0070.04720.36
5.5.370.0030.08320.37
5.5.360.0100.08020.37
5.5.350.0130.07720.48
5.5.340.0100.04320.93
5.5.330.0130.07320.94
5.5.320.0130.04020.90
5.5.310.0070.08320.84
5.5.300.0070.06320.88
5.5.290.0100.08720.87
5.5.280.0130.07320.88
5.5.270.0200.06720.80
5.5.260.0100.07320.92
5.5.250.0130.07720.60
5.5.240.0100.05320.26
5.5.230.0170.07720.27
5.5.220.0200.06720.16
5.5.210.0030.09020.28
5.5.200.0100.05320.19
5.5.190.0070.07020.13
5.5.180.0030.04720.15
5.5.160.0070.06720.16
5.5.150.0100.06720.20
5.5.140.0030.07020.27
5.5.130.0070.06720.17
5.5.120.0030.05020.23
5.5.110.0130.07320.08
5.5.100.0170.06020.05
5.5.90.0100.07320.10
5.5.80.0100.07020.17
5.5.70.0200.05320.16
5.5.60.0030.07720.07
5.5.50.0100.07720.15
5.5.40.0130.07019.97
5.5.30.0000.08020.16
5.5.20.0000.07720.00
5.5.10.0100.08019.95
5.5.00.0130.08020.04
5.4.450.0070.08319.45
5.4.440.0130.06019.44
5.4.430.0130.07719.55
5.4.420.0070.08319.34
5.4.410.0130.08719.29
5.4.400.0130.05718.79
5.4.390.0100.05319.11
5.4.380.0100.07319.03
5.4.370.0000.07719.20
5.4.360.0100.07018.96
5.4.350.0100.06719.12
5.4.340.0230.06019.10
5.4.320.0070.07719.11
5.4.310.0030.05719.05
5.4.300.0070.06319.09
5.4.290.0030.08018.79
5.4.280.0230.06018.81
5.4.270.0100.06319.11
5.4.260.0130.06718.92
5.4.250.0130.05318.95
5.4.240.0070.07019.05
5.4.230.0130.06718.93
5.4.220.0170.05719.04
5.4.210.0030.08018.80
5.4.200.0130.07019.11
5.4.190.0200.05319.09
5.4.180.0100.07319.03
5.4.170.0030.07019.13
5.4.160.0270.05718.79
5.4.150.0100.08019.22
5.4.140.0000.06716.39
5.4.130.0070.06316.31
5.4.120.0100.03716.06
5.4.110.0130.06016.38
5.4.100.0100.07016.36
5.4.90.0130.06716.31
5.4.80.0200.06016.31
5.4.70.0130.07016.22
5.4.60.0070.07316.24
5.4.50.0130.07016.18
5.4.40.0030.08316.29
5.4.30.0230.05716.20
5.4.20.0130.03016.39
5.4.10.0000.08016.27
5.4.00.0000.05015.80
5.3.290.0070.07714.51
5.3.280.0100.06714.55
5.3.270.0100.07014.47
5.3.260.0030.08014.57
5.3.250.0030.04714.45
5.3.240.0100.07014.61
5.3.230.0070.07714.59
5.3.220.0130.07014.54
5.3.210.0030.08014.56
5.3.200.0070.07714.53
5.3.190.0000.08314.39
5.3.180.0170.06314.41
5.3.170.0070.08314.54
5.3.160.0000.08314.57
5.3.150.0000.07714.55
5.3.140.0170.07014.53
5.3.130.0130.05714.42
5.3.120.0070.07714.42
5.3.110.0030.07714.52
5.3.100.0030.08013.88
5.3.90.0130.04714.03
5.3.80.0100.07313.99
5.3.70.0070.05014.02
5.3.60.0170.06013.88
5.3.50.0070.05313.81
5.3.40.0000.07713.92
5.3.30.0030.07013.93
5.3.20.0130.07013.68
5.3.10.0170.07313.65
5.3.00.0100.04013.55
5.2.170.0100.06712.23
5.2.160.0130.05312.23
5.2.150.0100.05712.23
5.2.140.0030.05012.23
5.2.130.0070.05012.23
5.2.120.0100.05712.23
5.2.110.0100.05312.23
5.2.100.0100.05712.23
5.2.90.0030.03312.23
5.2.80.0000.06312.23
5.2.70.0070.06312.23
5.2.60.0000.06312.23
5.2.50.0100.05712.23
5.2.40.0000.04012.23
5.2.30.0070.05312.23
5.2.20.0030.04712.23
5.2.10.0030.03312.23
5.2.00.0070.05312.23
5.1.60.0070.05012.23
5.1.50.0030.05012.23
5.1.40.0100.04712.23
5.1.30.0070.05312.23
5.1.20.0000.04712.23
5.1.10.0000.03312.23
5.1.00.0100.04012.23
5.0.50.0030.04012.23
5.0.40.0070.04012.23
5.0.30.0030.05312.23
5.0.20.0000.03712.23
5.0.10.0030.04312.23
5.0.00.0000.06012.23
4.4.90.0000.02312.23
4.4.80.0100.03012.23
4.4.70.0000.03712.23
4.4.60.0030.01712.23
4.4.50.0000.03712.23
4.4.40.0030.02712.23
4.4.30.0030.03712.23
4.4.20.0000.03712.23
4.4.10.0000.03312.23
4.4.00.0070.05312.23
4.3.110.0000.03012.23
4.3.100.0030.02012.23
4.3.90.0000.03712.23
4.3.80.0030.05012.23
4.3.70.0070.03312.23
4.3.60.0070.03012.23
4.3.50.0030.03712.23
4.3.40.0030.05312.23
4.3.30.0030.03312.23
4.3.20.0000.02012.23
4.3.10.0000.04012.23
4.3.00.0000.02712.23

preferences:
40.26 ms | 401 KiB | 5 Q