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>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.0160.00617.00
8.3.50.0120.00318.33
8.3.40.0110.00319.34
8.3.30.0120.00319.07
8.3.20.0040.00420.91
8.3.10.0000.00822.14
8.3.00.0040.00422.18
8.2.180.0110.00419.00
8.2.170.0100.01022.96
8.2.160.0110.00322.58
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.20
8.2.120.0040.00426.35
8.2.110.0030.00621.32
8.2.100.0090.00618.34
8.2.90.0040.00419.35
8.2.80.0050.00317.97
8.2.70.0030.00518.00
8.2.60.0030.00718.18
8.2.50.0000.00918.10
8.2.40.0040.00420.96
8.2.30.0030.00619.71
8.2.20.0080.00018.46
8.2.10.0040.00418.40
8.2.00.0030.00518.06
8.1.280.0040.01525.92
8.1.270.0040.00422.42
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00019.71
8.1.230.0080.00320.68
8.1.220.0040.00418.03
8.1.210.0030.00618.77
8.1.200.0030.00617.85
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0040.00418.93
8.1.160.0040.00422.31
8.1.150.0040.00420.55
8.1.140.0000.00819.84
8.1.130.0070.00018.12
8.1.120.0030.00617.77
8.1.110.0030.00617.77
8.1.100.0080.00017.74
8.1.90.0080.00017.77
8.1.80.0040.00417.80
8.1.70.0090.00017.65
8.1.60.0040.00417.85
8.1.50.0030.00617.70
8.1.40.0000.00817.88
8.1.30.0050.00318.02
8.1.20.0030.00617.94
8.1.10.0030.00517.91
8.1.00.0040.00417.80
8.0.300.0080.00018.77
8.0.290.0050.00217.13
8.0.280.0040.00418.71
8.0.270.0050.00217.69
8.0.260.0000.00817.55
8.0.250.0000.00717.29
8.0.240.0030.00317.25
8.0.230.0000.00717.24
8.0.220.0000.00717.24
8.0.210.0000.00717.23
8.0.200.0040.00417.11
8.0.190.0040.00417.17
8.0.180.0000.00817.28
8.0.170.0000.00817.23
8.0.160.0060.00317.15
8.0.150.0030.00517.03
8.0.140.0040.00417.21
8.0.130.0030.00313.75
8.0.120.0040.00417.11
8.0.110.0000.00817.13
8.0.100.0000.00717.30
8.0.90.0000.00817.25
8.0.80.0130.00317.12
8.0.70.0050.00317.13
8.0.60.0040.00417.22
8.0.50.0000.00817.29
8.0.30.0070.01117.36
8.0.20.0100.00917.40
8.0.10.0070.00017.37
8.0.00.0120.00616.98
7.4.330.0080.00015.55
7.4.320.0000.00916.79
7.4.300.0030.00316.84
7.4.290.0000.00716.71
7.4.280.0040.00416.69
7.4.270.0030.00316.94
7.4.260.0040.00816.86
7.4.250.0040.00416.93
7.4.240.0040.00416.77
7.4.230.0080.00016.53
7.4.220.0070.01116.66
7.4.210.0100.00716.84
7.4.200.0030.00516.95
7.4.160.0120.00416.95
7.4.150.0160.00817.40
7.4.140.0070.01317.86
7.4.130.0110.00816.87
7.4.120.0070.01116.88
7.4.110.0090.01216.89
7.4.100.0070.01116.82
7.4.90.0180.00716.93
7.4.80.0130.00719.39
7.4.70.0060.01716.71
7.4.60.0120.00616.93
7.4.50.0030.00916.75
7.4.40.0070.01016.92
7.4.30.0100.00716.80
7.4.00.0060.01015.07
7.3.330.0050.00013.51
7.3.320.0000.00613.51
7.3.310.0000.00716.75
7.3.300.0000.00716.55
7.3.290.0090.00816.66
7.3.280.0100.01016.65
7.3.270.0110.00717.40
7.3.260.0130.00716.85
7.3.250.0140.01716.65
7.3.240.0130.01116.71
7.3.230.0060.01216.73
7.3.210.0060.01116.66
7.3.200.0150.00316.67
7.3.190.0140.00316.77
7.3.180.0120.00916.89
7.3.170.0030.01416.67
7.3.160.0100.00716.77
7.3.120.0080.00814.89
7.3.110.0080.01015.16
7.3.100.0080.00815.11
7.3.90.0080.00615.06
7.3.80.0080.00614.87
7.3.70.0100.01015.07
7.3.60.0050.00614.96
7.3.50.0070.00915.19
7.3.40.0090.00615.06
7.3.30.0030.01115.03
7.3.20.0070.00316.84
7.3.10.0090.00816.69
7.3.00.0070.00716.87
7.2.330.0090.00917.05
7.2.320.0130.01316.69
7.2.310.0030.02016.98
7.2.300.0060.01217.08
7.2.290.0120.00916.89
7.2.250.0110.00815.25
7.2.240.0080.00815.02
7.2.230.0070.00815.15
7.2.220.0050.01115.10
7.2.210.0100.00615.41
7.2.200.0040.00915.26
7.2.190.0070.00715.29
7.2.180.0050.01015.03
7.2.170.0040.01115.24
7.2.160.0080.00315.20
7.2.150.0080.00716.99
7.2.140.0110.00517.00
7.2.130.0070.00717.07
7.2.120.0070.00816.97
7.2.110.0060.01117.14
7.2.100.0060.01117.05
7.2.90.0090.00817.13
7.2.80.0080.00417.20
7.2.70.0070.00517.11
7.2.60.0100.00817.12
7.2.50.0050.00817.02
7.2.40.0070.00816.99
7.2.30.0090.01017.07
7.2.20.0050.00916.96
7.2.10.0090.01017.11
7.2.00.0050.01017.64
7.1.330.0050.01216.24
7.1.320.0070.01115.81
7.1.310.0120.00315.87
7.1.300.0090.00516.00
7.1.290.0030.00815.80
7.1.280.0030.01115.93
7.1.270.0020.00715.79
7.1.260.0110.00315.79
7.1.250.0080.00515.92
7.1.240.0070.01016.10
7.1.230.0100.00716.07
7.1.220.0070.00716.05
7.1.210.0030.00916.16
7.1.200.0120.00116.01
7.1.190.0000.00915.92
7.1.180.0060.00616.03
7.1.170.0030.01015.95
7.1.160.0120.00615.80
7.1.150.0170.00015.97
7.1.140.0080.00815.80
7.1.130.0040.01116.10
7.1.120.0030.01216.14
7.1.110.0070.00715.85
7.1.100.0030.00615.83
7.1.90.0070.01015.92
7.1.80.0030.01016.05
7.1.70.0050.00816.76
7.1.60.0070.00616.48
7.1.50.0030.01015.77
7.1.40.0040.01116.07
7.1.30.0040.00816.07
7.1.20.0120.00015.82
7.1.10.0080.00316.11
7.1.00.0040.04219.33
7.0.330.0030.01115.38
7.0.320.0100.00315.43
7.0.310.0120.00615.55
7.0.300.0000.01515.68
7.0.290.0090.00615.56
7.0.280.0060.00615.54
7.0.270.0060.00915.64
7.0.260.0060.00915.32
7.0.250.0040.01115.73
7.0.240.0040.01115.34
7.0.230.0000.01715.76
7.0.220.0000.01315.55
7.0.210.0090.00615.75
7.0.200.0000.01016.19
7.0.190.0090.00315.30
7.0.180.0080.00415.74
7.0.170.0030.01015.73
7.0.160.0030.00715.71
7.0.150.0000.01215.65
7.0.140.0040.00815.44
7.0.130.0100.00315.73
7.0.120.0090.03018.83
7.0.110.0150.03818.79
7.0.100.0080.04018.88
7.0.90.0080.03319.00
7.0.80.0070.04918.84
7.0.70.0080.03418.87
7.0.60.0050.03318.97
7.0.50.0070.03218.91
7.0.40.0070.03718.02
7.0.30.0090.03217.98
7.0.20.0050.04418.05
7.0.10.0080.03318.00
7.0.00.0080.04018.01
5.6.400.0060.00914.55
5.6.390.0040.01114.97
5.6.380.0090.00314.75
5.6.370.0090.00614.71
5.6.360.0040.01114.63
5.6.350.0040.01414.35
5.6.340.0060.00614.67
5.6.330.0070.01114.88
5.6.320.0040.01114.73
5.6.310.0040.00814.61
5.6.300.0060.01014.61
5.6.290.0060.00914.98
5.6.280.0070.00714.78
5.6.270.0080.04118.04
5.6.260.0070.04217.73
5.6.250.0100.03717.97
5.6.240.0100.04017.79
5.6.230.0080.02917.88
5.6.220.0080.04517.77
5.6.210.0090.02917.85
5.6.200.0030.03417.84
5.6.190.0160.03217.88
5.6.180.0090.03417.80
5.6.170.0130.04017.87
5.6.160.0110.02817.72
5.6.150.0050.03317.73
5.6.140.0090.03517.73
5.6.130.0050.03417.68
5.6.120.0120.03217.75
5.6.110.0080.03317.77
5.6.100.0080.03617.84
5.6.90.0100.02817.74
5.6.80.0050.03317.42
5.6.70.0050.03617.49
5.6.60.0050.03417.46
5.6.50.0100.03017.36
5.6.40.0080.03317.59
5.6.30.0130.03517.37
5.6.20.0100.03317.30
5.6.10.0120.02917.40
5.6.00.0020.04617.37

preferences:
66.31 ms | 401 KiB | 5 Q