3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str='<div class="table tbl-process-mobile"> <div class="table-cn"> <div class="table-bd"> <table cellspacing="0" id="idd7"> <thead> <tr id="idd9"> <th scope="col"> <span>username</span> </th> <th scope="col"> <span>status</span> </th> <th scope="col"> <span>prefered number</span> </th> <th scope="col"> <span>action</span> </th> </tr> </thead> <tbody id="iddb"> <tr class="even"> <td class="even"> <div>randomusername</div> </td><td class="odd"> <div>0123456789</div> </td><td class="even"> <div>active</div> </td><td class="odd"> <div> <span id="iddc" style="display:none"></span> <a href="xyz" id="idb2"><span>set number</span></a> </div> </td><td class="even"> <div> <a id="iddd" style="display:none"></a> <a href="xyz" class="action-icon-edit" id="idb3" title="change"> <i>change</i> </a> <a href="xyz" class="action-icon-delete" id="idb4" title="delete"> <i>delete</i> </a> </div> </td> </tr><tr class="odd"> <td class="even"> <div>randomusername2</div> </td><td class="odd"> <div>0987654321</div> </td><td class="even"> <div>active</div> </td><td class="odd"> <div> <span id="idde" style="display:none"></span> <a href="xyz" id="idb5"><span>set number</span></a> </div> </td><td class="even"> <div> <a id="iddf" style="display:none"></a> <a href="xyz" class="action-icon-edit" id="idb6" title="change"> <i>change</i> </a> <a href="xyz" class="action-icon-delete" id="idb7" title="delete"> <i>delete</i> </a> </div> </td> </tr> </tbody> </table> </div> </div> </div>'; $dom = new DOMDocument; $dom->loadHTML($str); $trs = $dom->getElementById("iddb")->getElementsByTagName("tr"); $arr = []; foreach($trs as $key=>$tr){ $tds = $tr->getElementsByTagName("td"); $arr[$key] = [ $tds->item(0)->textContent, $tds->item(1)->textContent, $tds->item(2)->textContent ]; } print_r($arr); ?>

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.0130.01017.00
8.3.50.0090.00618.23
8.3.40.0070.00719.09
8.3.30.0150.00018.82
8.3.20.0090.00020.77
8.3.10.0040.00422.10
8.3.00.0040.00422.10
8.2.180.0040.01118.56
8.2.170.0060.00922.96
8.2.160.0070.00722.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00320.20
8.2.120.0080.00026.35
8.2.110.0030.00619.77
8.2.100.0200.00218.36
8.2.90.0070.01320.51
8.2.80.0130.00718.21
8.2.70.0180.00118.43
8.2.60.0100.00918.37
8.2.50.0120.00818.27
8.2.40.0140.00418.89
8.2.30.0110.00618.61
8.2.20.0060.00718.19
8.2.10.0120.00518.13
8.2.00.0110.00517.99
8.1.280.0100.01625.92
8.1.270.0040.00422.21
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0050.00519.50
8.1.230.0110.00919.87
8.1.220.0140.00418.29
8.1.210.0160.00418.77
8.1.200.0100.00918.14
8.1.190.0190.00118.02
8.1.180.0100.00918.27
8.1.170.0080.01018.38
8.1.160.0110.00519.48
8.1.150.0130.00418.86
8.1.140.0110.00718.65
8.1.130.0130.00418.01
8.1.120.0100.00717.90
8.1.110.0120.00617.92
8.1.100.0140.00417.93
8.1.90.0100.00717.94
8.1.80.0150.00217.89
8.1.70.0130.00517.92
8.1.60.0070.01117.99
8.1.50.0150.00217.96
8.1.40.0160.00417.96
8.1.30.0140.00517.99
8.1.20.0130.00518.01
8.1.10.0130.00617.98
8.1.00.0130.00717.91
8.0.300.0140.00319.42
8.0.290.0140.00417.72
8.0.280.0150.00218.27
8.0.270.0150.00317.86
8.0.260.0100.00718.25
8.0.250.0140.00417.78
8.0.240.0130.00317.75
8.0.230.0110.00617.72
8.0.220.0150.00217.73
8.0.210.0100.00717.75
8.0.200.0130.00417.72
8.0.190.0160.00117.76
8.0.180.0110.00617.71
8.0.170.0130.00517.74
8.0.160.0160.00217.74
8.0.150.0120.00417.74
8.0.140.0140.00317.70
8.0.130.0090.00616.54
8.0.120.0130.00517.73
8.0.110.0140.00317.75
8.0.100.0120.00517.68
8.0.90.0150.00417.75
8.0.80.0150.00517.71
8.0.70.0120.00517.69
8.0.60.0090.00817.74
8.0.50.0120.00517.73
8.0.30.0140.00617.69
8.0.20.0130.00917.71
8.0.10.0130.00417.79
8.0.00.0170.00617.59
7.4.330.0100.00316.55
7.4.320.0090.00717.64
7.4.300.0090.00617.62
7.4.290.0130.00317.67
7.4.280.0130.00417.65
7.4.270.0140.00317.66
7.4.260.0130.00317.64
7.4.250.0130.00617.58
7.4.240.0110.00617.57
7.4.230.0130.00417.62
7.4.220.0140.00717.66
7.4.210.0120.00717.61
7.4.200.0130.00417.61
7.4.190.0140.00918.03
7.4.180.0130.01118.03
7.4.160.0190.00218.03
7.4.150.0190.00617.82
7.4.140.0140.00417.92
7.4.130.0100.00817.25
7.4.120.0120.00917.21
7.4.110.0150.00817.67
7.4.100.0160.00517.55
7.4.90.0150.00417.57
7.4.80.0150.00418.48
7.4.70.0100.01017.60
7.4.60.0130.00617.63
7.4.50.0100.00617.59
7.4.40.0120.00717.64
7.4.30.0140.00417.58
7.4.20.0190.00118.03
7.4.10.0130.00718.03
7.4.00.0100.00716.52
7.3.330.0120.00416.50
7.3.320.0120.00416.48
7.3.310.0090.00717.54
7.3.300.0080.00717.55
7.3.290.0110.00817.17
7.3.280.0120.00816.99
7.3.270.0120.00717.82
7.3.260.0130.00717.47
7.3.250.0110.00817.22
7.3.240.0150.00817.37
7.3.230.0120.00817.58
7.3.220.0120.00818.03
7.3.210.0120.00817.57
7.3.200.0140.00617.67
7.3.190.0160.00317.52
7.3.180.0140.00517.58
7.3.170.0160.00417.54
7.3.160.0130.00717.60
7.3.150.0220.00418.03
7.3.140.0160.00518.03
7.3.130.0180.00318.03
7.3.120.0130.00616.52
7.3.110.0100.00916.50
7.3.100.0120.00416.47
7.3.90.0100.00616.46
7.3.80.0110.00616.47
7.3.70.0110.00616.52
7.3.60.0140.00516.51
7.3.50.0120.00516.42
7.3.40.0080.00816.49
7.3.30.0100.00816.53
7.3.20.0110.00617.56
7.3.10.0130.00317.51
7.3.00.0100.00517.24
7.2.340.0170.00318.03
7.2.330.0120.00717.71
7.2.320.0140.00717.64
7.2.310.0120.00817.71
7.2.300.0140.00617.61
7.2.290.0110.00817.66
7.2.280.0070.01318.03
7.2.270.0120.00718.03
7.2.260.0200.00018.03
7.2.250.0130.00717.10
7.2.240.0110.00816.55
7.2.230.0100.00916.60
7.2.220.0110.00516.60
7.2.210.0100.00816.63
7.2.200.0130.00316.65
7.2.190.0130.00516.64
7.2.180.0100.00716.59
7.2.170.0110.00816.62
7.2.160.0150.00317.09
7.2.150.0160.00317.88
7.2.140.0170.00417.92
7.2.130.0130.00417.76
7.2.120.0120.00417.64
7.2.110.0090.00617.71
7.2.100.0090.00917.61
7.2.90.0130.00517.65
7.2.80.0120.00517.74
7.2.70.0110.00717.76
7.2.60.0130.00817.57
7.2.50.0100.00717.57
7.2.40.0100.00917.65
7.2.30.0090.00717.67
7.2.20.0120.00517.82
7.2.10.0140.00517.64
7.2.00.0090.00718.18
7.1.330.0130.00516.97
7.1.320.0080.00817.00
7.1.310.0110.00516.96
7.1.300.0090.00716.98
7.1.290.0080.00717.02
7.1.280.0060.01116.97
7.1.270.0110.00516.95
7.1.260.0080.00716.89
7.1.250.0110.00616.96
7.1.240.0120.00417.29
7.1.230.0120.00617.25
7.1.220.0120.00417.34
7.1.210.0140.00317.29
7.1.200.0110.00516.95
7.1.190.0130.00417.24
7.1.180.0120.00617.29
7.1.170.0160.00117.33
7.1.160.0140.00317.30
7.1.150.0140.00517.29
7.1.140.0150.00417.34
7.1.130.0130.00617.32
7.1.120.0100.00817.40
7.1.110.0110.00817.35
7.1.100.0130.00417.31
7.1.90.0100.00817.30
7.1.80.0130.00317.36
7.1.70.0100.00417.22
7.1.60.0090.00717.33
7.1.50.0100.00817.35
7.1.40.0120.00817.37
7.1.30.0160.00317.26
7.1.20.0100.00817.24
7.1.10.0120.00517.38
7.1.00.0080.02418.61
7.0.330.0150.00217.17
7.0.320.0130.00617.26
7.0.310.0100.00617.20
7.0.300.0110.00717.16
7.0.290.0100.00717.10
7.0.280.0110.00617.18
7.0.270.0120.00417.24
7.0.260.0140.00417.16
7.0.250.0110.00717.15
7.0.240.0090.00817.13
7.0.230.0120.00317.22
7.0.220.0160.00317.20
7.0.210.0120.00417.17
7.0.200.0130.00317.18
7.0.190.0130.00417.20
7.0.180.0110.00817.21
7.0.170.0080.01017.17
7.0.160.0110.00617.18
7.0.150.0110.00717.21
7.0.140.0110.00417.17
7.0.130.0110.00517.23
7.0.120.0140.02218.00
7.0.110.0110.02117.94
7.0.100.0100.01918.39
7.0.90.0140.02018.02
7.0.80.0110.01818.39
7.0.70.0130.02417.98
7.0.60.0120.02218.49
7.0.50.0090.02018.06
7.0.40.0170.01817.96
7.0.30.0140.01717.93
7.0.20.0120.01817.92
7.0.10.0140.01717.48
7.0.00.0140.01617.47
5.6.400.0150.00318.03
5.6.390.0160.00218.03
5.6.380.0120.00516.85
5.6.370.0150.00316.79
5.6.360.0120.00616.92
5.6.350.0090.00616.87
5.6.340.0150.00316.90
5.6.330.0120.00316.88
5.6.320.0130.00516.91
5.6.310.0090.00816.77
5.6.300.0100.00816.79
5.6.290.0120.00516.88
5.6.280.0110.00616.88
5.6.270.0110.02217.82
5.6.260.0150.02217.92
5.6.250.0140.01817.95
5.6.240.0110.02217.88
5.6.230.0120.01817.81
5.6.220.0110.02117.84
5.6.210.0150.02117.86
5.6.200.0110.02417.93
5.6.190.0140.01817.96
5.6.180.0110.02017.89
5.6.170.0100.02017.83
5.6.160.0160.01317.85
5.6.150.0140.01517.84
5.6.140.0130.01717.86
5.6.130.0110.01817.92
5.6.120.0160.01517.85
5.6.110.0120.02617.77
5.6.100.0110.02317.92
5.6.90.0090.02417.88
5.6.80.0080.02417.77
5.6.70.0090.02317.74
5.6.60.0120.02117.75
5.6.50.0110.02217.77
5.6.40.0140.01717.76
5.6.30.0140.02017.68
5.6.20.0130.01817.65
5.6.10.0120.01717.71
5.6.00.0080.02017.69

preferences:
54.53 ms | 400 KiB | 5 Q