3v4l.org

run code in 300+ PHP versions simultaneously
<?php function arrayToTable($arData) { $resString = ""; if(is_array($arData)) { foreach($arData as $arItemS)$arDivCodes[] = $arItemS["Division"]; $arDivisions = getDivisionsByCodes($arDivCodes); $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)
5.4.150.0330.06719.20
5.4.140.0470.05716.31
5.4.130.0400.05716.33
5.4.120.0270.07016.33
5.4.110.0230.05716.27
5.4.100.0300.06716.35
5.4.90.0430.07716.40
5.4.80.0370.06716.52
5.4.70.0430.05016.55
5.4.60.0330.06016.49
5.4.50.0400.06316.43
5.4.40.0370.06316.43
5.4.30.0330.04316.55
5.4.20.0400.06016.25
5.4.10.0330.06316.54
5.4.00.0270.05015.79
5.3.250.0430.06314.59
5.3.240.0470.06014.70
5.3.230.0400.06714.69
5.3.220.0230.04714.50
5.3.210.0330.07014.60
5.3.200.0300.03714.64
5.3.190.0330.07314.49
5.3.180.0330.07314.50
5.3.170.0400.05014.50
5.3.160.0400.06714.58
5.3.150.0300.04314.79
5.3.140.0370.03014.55
5.3.130.0370.06314.63
5.3.120.0200.04714.46
5.3.110.0370.07314.78
5.3.100.0430.06314.02
5.3.90.0300.06314.16
5.3.80.0430.06013.94
5.3.70.0270.05014.08
5.3.60.0300.03713.99
5.3.50.0300.03313.98
5.3.40.0330.06313.96
5.3.30.0330.04313.85
5.3.20.0370.06713.63
5.3.10.0270.04313.57
5.3.00.0500.05013.66

preferences:
135.84 ms | 1394 KiB | 7 Q