3v4l.org

run code in 300+ PHP versions simultaneously
<?php function KB_ArticlesList() { XeinzKB_Menu_Top(); Echo "<div><a href='index.php?page=kb_kb'>KBs</a> &gt;&gt;&gt; ".(new KB($_REQUEST['KBid']))->KBname()." &gt;&gt;&gt; <a href='index.php?page=XeinzKB_ArticlesList&amp;KBid={$_REQUEST['KBid']}'>Articles List</a></div> "; if (empty($_REQUEST['KBid'])) { Echo "<div class='redbox'>Sorry, KBid is required here.</div>"; return; } $query = "SELECT KBArt.id, KBArt.sectionid, KBArtparent.title as parenttitle, KBArt.original_html, KBArt.html, KBArt.title, KBArt.uniqid, KBsec.name, (SELECT STRING_AGG(keyword, ', ') FROM [KBKeywords] WHERE article=KBArt.id) as keywords FROM [WP_PORTALSUPPORT].[dbo].[KBArticle] KBArt inner join XeinzKBSections KBSec on KBArt.sectionid=KBSec.id left outer join KBArticle KBartparent on KBArt.parentarticleid=KBartparent.id where KBsec.KBid= :KBid Order By KBArt.id"; $bindings = array(':KBid' => $_REQUEST['KBid']); $result = (new PORTAL())->get_array($query, $bindings); datatables_newdatatable('KBArticleList'); Echo "<table class='w-100' id='KBArticleList'> <thead> <tr> <th><b>Section</b><br><i>Parent</i></th> <th>Title</th> <th>Keywords</th> <th></th> </tr> </thead> <tbody>"; foreach ($result as $value) { Echo " <tr id='ArticleBookMark{$value['id']}'> <td> <b>{$value['name']}</b><br> <i>{$value['parenttitle']}</i> </td> <td>{$value['title']}</td> <td>{$value['keywords']}</td> <td> <form name='form' method='post' action='index.php' > <input name='page' value='KB_Article' type='hidden'> <input name='article' value='{$value['id']}' type='hidden'> <button class='btn btn-primary' type='submit'>Edit</button> </form> </td> </tr>"; } Echo "</tbody></table>"; }

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.4.120.0110.01020.64
8.4.110.0150.00422.47
8.4.100.0120.00717.70
8.4.90.0130.00818.52
8.4.80.0110.00919.33
8.4.70.0130.00317.76
8.4.60.0140.00818.74
8.4.50.0060.01419.04
8.4.40.0060.01317.69
8.4.30.0130.00718.73
8.4.20.0030.00521.55
8.4.10.0040.00419.37
8.3.250.0060.00319.04
8.3.240.0040.00416.74
8.3.230.0110.00716.50
8.3.220.0070.00417.09
8.3.210.0040.00418.43
8.3.200.0040.00516.44
8.3.190.0080.00917.18
8.3.180.0140.00517.07
8.3.170.0110.00720.66
8.3.160.0140.00416.39
8.3.150.0090.00917.09
8.3.140.0050.00316.37
8.3.130.0040.00418.24
8.3.120.0040.00416.57
8.3.110.0030.00716.50
8.3.100.0060.00316.36
8.3.90.0110.00318.30
8.3.80.0090.01130.84
8.3.70.0000.00830.84
8.3.50.0050.00330.84
8.2.290.0110.00720.67
8.2.280.0100.01018.46
8.2.270.0100.00617.23
8.2.260.0040.00417.19
8.2.250.0040.00416.74
8.2.240.0050.00518.60
8.2.230.0030.00620.94
8.2.220.0080.00024.06
8.2.210.0050.00526.77
8.2.200.0080.00030.84
8.2.190.0060.00330.84
8.1.330.0100.00923.54
8.1.320.0110.00715.73
8.1.310.0140.00318.36
8.1.300.0100.01016.17
8.1.290.0030.01230.84

preferences:
52.24 ms | 403 KiB | 5 Q