3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arrayToTable($arData) { $resString = ""; if(is_array($arData)) { $resString = "<table col='6' id='decisList' >" ."<thead>" ."<tr align=center>" ."<th width=20>#</th>" ."<th width=50>Данные постановления</th>" ."<th width=80>ID по ФИАС</th>" ."<th>Контактный e-mail</th>" ."<th width=80>Приложение</th>" ."<th width=50>Действия</th>" ."</tr>" ."</thead>" ."<tbody>"; // ------------------------ Тело таблицы --------------------- // $rnum = 0; foreach($arData as $arItem) { $resString .= "<tr decId=\"".$arItem["CODE"]."\" id=\"sid_".substr($arItem["ID"],-20)."\" >" ."<td>".++$rnum."</td>" ."<td class='decis'>".$arItem["NAME"]."</td>" ."<td class='gid'>".$arItem["CODE"]."</td>" ."<td class='email'>".$arItem["EMAIL"]."</td>" ."<td class='postnum'><a href='".$arItem["ATT"]."' target='_blank' title='Скачать приложенный файл'>Скачать</a></td>" ."<td class='actions' align=\"right\"><b>ПОДТВЕРЖДЕНО</b> | <b>НЕ ПОДТВЕРЖДЕНО</b></td>" ."</tr>"; } // ------------------------ Тело таблицы END --------------- // $resString .= "</tbody>" ."</table>"; } return $resString; } echo arrayToTable(array( array( "ID"=>"111", "CODE"=>"333", "NAME"=>"222", "EMAIL"=>"3333", "ATT"=>"222" ) )); ?>

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.40.0100.00718.76
8.3.30.0110.01119.09
8.3.20.0040.00420.39
8.3.10.0080.00023.65
8.3.00.0040.00422.48
8.2.170.0110.00422.96
8.2.160.0090.00622.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.35
8.2.110.0030.00622.15
8.2.100.0090.00317.84
8.2.90.0040.00419.40
8.2.80.0040.00418.03
8.2.70.0040.00417.48
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0070.00418.07
8.2.20.0000.00817.78
8.2.10.0040.00417.82
8.2.00.0030.00517.78
8.1.270.0050.00323.82
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00823.63
8.1.230.0040.00719.07
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0080.00017.41
8.1.180.0060.00318.10
8.1.170.0000.00818.65
8.1.160.0040.00421.96
8.1.150.0040.00418.70
8.1.140.0030.00517.40
8.1.130.0030.00317.84
8.1.120.0070.00317.43
8.1.110.0030.00517.43
8.1.100.0080.00017.48
8.1.90.0040.00317.46
8.1.80.0040.00417.40
8.1.70.0070.00017.46
8.1.60.0060.00317.61
8.1.50.0060.00317.52
8.1.40.0000.00817.58
8.1.30.0000.00817.59
8.1.20.0060.00317.67
8.1.10.0040.00417.55
8.1.00.0000.00817.45
8.0.300.0030.00618.77
8.0.290.0050.00216.93
8.0.280.0000.00718.50
8.0.270.0030.00517.21
8.0.260.0070.00016.85
8.0.250.0000.00716.99
8.0.240.0030.00316.97
8.0.230.0030.00317.00
8.0.220.0070.00016.97
8.0.210.0070.00016.95
8.0.200.0030.00316.87
8.0.190.0000.00817.00
8.0.180.0030.00917.00
8.0.170.0000.00716.95
8.0.160.0000.00716.82
8.0.150.0040.00316.81
8.0.140.0030.00416.89
8.0.130.0030.00513.29
8.0.120.0030.00516.93
8.0.110.0040.00416.88
8.0.100.0030.00516.79
8.0.90.0000.00816.85
8.0.80.0110.00316.88
8.0.70.0040.00416.80
8.0.60.0040.00416.95
8.0.50.0040.00416.94
8.0.30.0140.00917.18
8.0.20.0100.00817.40
8.0.10.0000.00817.11
8.0.00.0100.00916.88
7.4.330.0050.00015.00
7.4.320.0030.00316.55
7.4.300.0030.00316.64
7.4.290.0070.00016.62
7.4.280.0070.00016.63
7.4.270.0060.00316.56
7.4.260.0040.00416.51
7.4.250.0050.00316.55
7.4.240.0050.00216.58
7.4.230.0030.00316.66
7.4.220.0120.00616.75
7.4.210.0060.01016.62
7.4.200.0000.00716.34
7.4.190.0070.00016.78
7.4.160.0000.01516.46
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0140.00916.42
7.4.120.0130.00716.47
7.4.110.0060.01116.47
7.4.100.0070.01016.52
7.4.90.0040.01316.41
7.4.80.0100.01316.67
7.4.70.0090.00616.58
7.4.60.0030.01316.59
7.4.50.0090.00016.54
7.4.40.0150.00022.77
7.4.30.0080.01116.70
7.4.00.0030.01414.87
7.3.330.0000.00513.34
7.3.320.0030.00313.19
7.3.310.0040.00416.25
7.3.300.0000.00616.40
7.3.290.0040.01116.34
7.3.280.0100.00616.29
7.3.270.0070.01017.40
7.3.260.0100.01016.41
7.3.250.0110.00616.68
7.3.240.0060.01316.59
7.3.230.0070.01016.39
7.3.210.0030.01716.30
7.3.200.0170.00919.39
7.3.190.0100.00616.57
7.3.180.0030.01416.68
7.3.170.0110.00516.57
7.3.160.0160.00016.50
7.3.120.0050.01314.98
7.3.110.0100.00714.71
7.3.100.0060.00614.90
7.3.90.0000.01014.95
7.3.80.0100.00315.16
7.3.70.0050.00514.72
7.3.60.0030.00614.83
7.3.50.0000.01214.82
7.3.40.0030.00614.64
7.3.30.0100.00314.71
7.3.20.0040.01116.80
7.3.10.0140.00316.67
7.3.00.0140.00016.60
7.2.330.0140.00416.84
7.2.320.0120.00916.71
7.2.310.0030.02116.80
7.2.300.0140.00716.56
7.2.290.0100.01016.75
7.2.250.0100.00915.12
7.2.240.0070.01414.79
7.2.230.0000.01615.21
7.2.220.0060.01015.13
7.2.210.0040.01115.06
7.2.200.0000.01015.31
7.2.190.0030.00914.91
7.2.180.0030.00815.25
7.2.170.0060.00315.29
7.2.60.0030.01216.99
7.2.00.0000.01518.88
7.1.330.0100.00415.79
7.1.320.0030.01015.78
7.1.310.0130.00315.77
7.1.300.0030.01315.88
7.1.290.0030.01015.63
7.1.280.0060.00615.94
7.1.270.0090.00615.53
7.1.260.0120.00315.70
7.1.200.0290.01015.49
7.1.100.0070.01018.04
7.1.70.0050.00217.30
7.1.60.0060.00919.24
7.1.50.0100.01416.74
7.1.00.0130.06722.45
7.0.200.0040.01116.85
7.0.140.0100.07022.19
7.0.100.0170.06720.06
7.0.90.0270.08020.01
7.0.80.0200.05320.06
7.0.70.0070.08019.91
7.0.60.0200.07020.00
7.0.50.0130.07320.27
7.0.40.0100.07019.96
7.0.30.0030.04320.15
7.0.20.0100.08320.11
7.0.10.0100.07720.14
7.0.00.0130.07720.09
5.6.280.0100.06721.10
5.6.250.0070.04320.67
5.6.240.0070.08320.58
5.6.230.0070.08320.64
5.6.220.0130.07320.59
5.6.210.0130.07320.63
5.6.200.0030.08721.13
5.6.190.0000.05021.05
5.6.180.0000.04321.04
5.6.170.0100.07321.08
5.6.160.0170.07321.05
5.6.150.0170.04721.04
5.6.140.0100.07320.94
5.6.130.0200.07321.07
5.6.120.0170.05721.02
5.6.110.0130.06020.99
5.6.100.0170.08021.00
5.6.90.0200.07321.00
5.6.80.0070.04020.45
5.6.70.0130.07720.49
5.6.60.0030.07720.52
5.6.50.0070.04720.38
5.6.40.0070.04720.50
5.6.30.0030.08320.31
5.6.20.0100.07020.38
5.6.10.0100.04320.37
5.6.00.0030.04320.46
5.5.380.0130.07320.37
5.5.370.0070.08320.37
5.5.360.0070.04020.35
5.5.350.0000.06020.46
5.5.340.0100.07320.79
5.5.330.0070.06320.91
5.5.320.0030.04320.74
5.5.310.0030.04020.76
5.5.300.0070.08320.90
5.5.290.0070.05320.82
5.5.280.0100.08320.77
5.5.270.0070.08020.89
5.5.260.0100.07320.91
5.5.250.0030.04720.58
5.5.240.0030.04020.25
5.5.230.0170.07320.00
5.5.220.0070.05720.16
5.5.210.0070.03720.29
5.5.200.0070.04720.28
5.5.190.0030.05320.16
5.5.180.0130.07020.28
5.5.160.0100.04320.13
5.5.150.0130.07320.26
5.5.140.0130.06720.15
5.5.130.0130.06020.25
5.5.120.0070.07720.23
5.5.110.0070.07320.15
5.5.100.0070.03320.05
5.5.90.0070.04320.16
5.5.80.0170.06719.98
5.5.70.0070.07320.07
5.5.60.0100.05020.07
5.5.50.0030.07720.07
5.5.40.0070.04720.12
5.5.30.0070.04320.05
5.5.20.0070.06720.05
5.5.10.0000.08020.05
5.5.00.0030.07020.08
5.4.450.0170.04319.56
5.4.440.0130.07319.27
5.4.430.0100.07719.20
5.4.420.0030.05019.55
5.4.410.0130.07319.25
5.4.400.0130.06019.01
5.4.390.0070.07719.23
5.4.380.0070.07019.09
5.4.370.0070.07718.88
5.4.360.0070.03719.04
5.4.350.0100.08019.18
5.4.340.0100.07018.82
5.4.320.0070.04718.87
5.4.310.0000.06718.91
5.4.300.0100.04019.14
5.4.290.0100.07319.14
5.4.280.0070.04718.88
5.4.270.0130.04019.03
5.4.260.0030.07719.14
5.4.250.0030.04719.05
5.4.240.0000.04019.03
5.4.230.0070.07318.85
5.4.220.0030.04319.20
5.4.210.0030.07019.07
5.4.200.0070.07718.89
5.4.190.0130.05718.94
5.4.180.0030.03719.11
5.4.170.0030.07319.02
5.4.160.0070.07718.88
5.4.150.0130.07318.88
5.4.140.0000.03716.37
5.4.130.0030.04316.20
5.4.120.0030.06316.36
5.4.110.0100.06316.34
5.4.100.0030.07716.32
5.4.90.0030.07316.52
5.4.80.0170.02316.31
5.4.70.0070.03716.35
5.4.60.0030.07316.31
5.4.50.0030.06716.44
5.4.40.0030.03316.37
5.4.30.0100.07016.48
5.4.20.0130.05716.31
5.4.10.0000.08016.41
5.4.00.0100.06715.80
5.3.290.0030.06714.60
5.3.280.0100.06714.73
5.3.270.0100.06714.57
5.3.260.0100.03014.58
5.3.250.0030.04014.59
5.3.240.0030.07314.74
5.3.230.0070.03714.53
5.3.220.0000.03714.63
5.3.210.0170.06714.57
5.3.200.0100.07014.58
5.3.190.0130.07014.63
5.3.180.0070.05014.59
5.3.170.0130.06714.49
5.3.160.0030.04014.62
5.3.150.0070.06014.63
5.3.140.0170.06014.51
5.3.130.0100.06714.60
5.3.120.0100.06014.62
5.3.110.0030.03714.50
5.3.100.0170.05714.02
5.3.90.0070.06714.11
5.3.80.0100.06714.13
5.3.70.0100.07014.09
5.3.60.0100.07014.01
5.3.50.0100.05014.06
5.3.40.0030.05013.93
5.3.30.0030.04013.89
5.3.20.0070.07013.76
5.3.10.0070.07313.54
5.3.00.0030.07013.73
5.2.170.0100.05711.20
5.2.160.0000.03711.08
5.2.150.0030.06311.20
5.2.140.0100.05711.25
5.2.130.0070.05311.20
5.2.120.0100.03311.17
5.2.110.0070.05711.21
5.2.100.0030.04311.09
5.2.90.0030.05711.14
5.2.80.0100.05711.13
5.2.70.0000.05011.09
5.2.60.0030.06311.18
5.2.50.0100.05711.09
5.2.40.0030.05710.91
5.2.30.0000.03711.11
5.2.20.0170.05310.89
5.2.10.0030.05710.85
5.2.00.0000.03710.73
5.1.60.0070.02310.07
5.1.50.0000.04010.09
5.1.40.0070.05710.06
5.1.30.0100.05310.38
5.1.20.0070.04710.49
5.1.10.0100.05010.06
5.1.00.0030.03010.17
5.0.50.0000.0408.66
5.0.40.0100.0378.44
5.0.30.0000.0708.25
5.0.20.0000.0408.06
5.0.10.0000.0408.31
5.0.00.0000.0638.27
4.4.90.0070.0307.64
4.4.80.0070.0307.64
4.4.70.0000.0337.64
4.4.60.0030.0337.64
4.4.50.0030.0237.64
4.4.40.0070.0537.64
4.4.30.0000.0277.64
4.4.20.0070.0337.66
4.4.10.0000.0307.66
4.4.00.0000.0407.66
4.3.110.0000.0407.66
4.3.100.0030.0277.66
4.3.90.0030.0377.66
4.3.80.0000.0477.66
4.3.70.0000.0377.66
4.3.60.0030.0137.66
4.3.50.0070.0307.66
4.3.40.0000.0477.66
4.3.30.0000.0307.66
4.3.20.0070.0277.66
4.3.10.0000.0207.66
4.3.00.0000.0237.66

preferences:
39.03 ms | 400 KiB | 5 Q