3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<table> <tbody> <tr><tr> <tr> <td> <table class="style124"> <tbody> <tr> <td>A</td> </tr> <tr> <td>B</td> //THIS !! </tr> </tbody> </table> </td> </tr> <tr></tr> </tbody> </table>'; $dom = new DOMDocument; $dom->loadHTML($html); $tables = $dom->getElementsByTagName('table'); foreach($tables as $table){ if(preg_match('/\bstyle124\b/', $table->getAttribute('class'))){ $trs = $table->getElementsByTagName('tr'); $tds = $trs[1]->getElementsByTagName('td'); echo $tds[0]->nodeValue; } }

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.140.0180.01118.02
8.4.130.0090.01217.92
8.4.120.0090.01124.29
8.4.110.0110.00619.17
8.4.100.0020.00718.23
8.4.90.0030.00722.77
8.4.80.0140.00421.02
8.4.70.0100.00720.95
8.4.60.0110.00921.02
8.4.50.0120.00918.80
8.4.40.0200.00018.32
8.4.30.0030.00620.69
8.4.20.0030.01719.96
8.4.10.0040.00420.03
8.3.270.0130.00716.78
8.3.260.0060.00817.04
8.3.250.0130.00618.76
8.3.240.0120.00617.43
8.3.230.0140.00717.11
8.3.220.0100.01021.07
8.3.210.0100.01017.02
8.3.200.0030.00616.82
8.3.190.0130.00517.40
8.3.180.0100.00919.16
8.3.170.0070.01116.95
8.3.160.0130.00617.39
8.3.150.0160.00316.97
8.3.140.0030.00620.81
8.3.130.0120.00318.43
8.3.120.0000.00819.15
8.3.110.0040.01517.07
8.3.100.0030.00518.95
8.3.90.0070.00326.77
8.3.80.0070.00319.36
8.3.70.0060.00917.00
8.3.60.0030.01317.00
8.3.50.0170.00223.63
8.3.40.0170.00322.28
8.3.30.0160.00019.03
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0070.00426.16
8.2.290.0110.01018.98
8.2.280.0070.00320.36
8.2.270.0070.00717.10
8.2.260.0110.00617.12
8.2.250.0120.00616.94
8.2.240.0040.00417.41
8.2.230.0120.00620.94
8.2.220.0110.00424.06
8.2.210.0030.00626.77
8.2.200.0030.00618.88
8.2.190.0090.00616.80
8.2.180.0050.01025.92
8.2.170.0040.01119.33
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.35
8.2.110.0060.00321.48
8.2.100.0120.00018.14
8.2.90.0060.00318.00
8.2.80.0030.00619.24
8.2.70.0000.00818.16
8.2.60.0060.00318.47
8.2.50.0040.00418.10
8.2.40.0050.00219.58
8.2.30.0000.00719.64
8.2.20.0030.00518.34
8.2.10.0000.00719.55
8.2.00.0070.00019.59
8.1.330.0130.00716.98
8.1.320.0060.00918.19
8.1.310.0040.00416.46
8.1.300.0030.01518.31
8.1.290.0040.00430.84
8.1.280.0040.01425.92
8.1.270.0040.01124.10
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0030.00618.14
8.1.230.0090.00321.18
8.1.220.0040.00418.14
8.1.210.0030.00518.77
8.1.200.0000.01117.73
8.1.190.0100.00017.60
8.1.180.0000.00818.10
8.1.170.0000.00918.89
8.1.160.0040.00419.29
8.1.150.0050.00219.17
8.1.140.0050.00319.10
8.1.130.0040.00420.37
8.1.120.0030.00817.91
8.1.110.0050.00317.84
8.1.100.0000.00817.84
8.1.90.0030.00617.86
8.1.80.0050.00317.79
8.1.70.0040.00417.83
8.1.60.0030.00617.84
8.1.50.0000.00817.82
8.1.40.0040.00417.87
8.1.30.0120.00017.93
8.1.20.0050.00517.94
8.1.10.0060.00317.86
8.1.00.0040.00417.88
8.0.300.0000.00918.77
8.0.290.0100.00017.00
8.0.280.0050.00218.79
8.0.270.0000.00718.32
8.0.260.0000.00818.79
8.0.250.0030.00317.29
8.0.240.0070.00017.32
8.0.230.0000.00717.32
8.0.220.0030.00317.29
8.0.210.0000.00817.28
8.0.200.0050.00217.36
8.0.190.0060.00317.36
8.0.180.0000.00717.17
8.0.170.0090.00317.30
8.0.160.0030.00517.25
8.0.150.0040.00417.19
8.0.140.0070.00017.20
8.0.130.0000.00613.66
8.0.120.0040.00417.19
8.0.110.0070.00017.09
8.0.100.0030.00617.15
8.0.90.0020.00517.15
8.0.80.0070.01317.21
8.0.70.0000.00817.04
8.0.60.0070.00017.20
8.0.50.0040.00417.09
8.0.30.0150.00917.59
8.0.20.0130.00617.23
8.0.10.0040.00417.41
8.0.00.0060.01217.29
7.4.330.0000.00515.55
7.4.320.0040.00416.95
7.4.300.0050.00216.81
7.4.290.0040.00416.96
7.4.280.0040.00416.80
7.4.270.0030.00317.02
7.4.260.0000.00513.77
7.4.250.0040.00416.82
7.4.240.0000.00717.12
7.4.230.0000.00717.04
7.4.220.0020.00516.96
7.4.210.0120.00616.99
7.4.200.0000.00717.04
7.4.130.0090.00916.77
7.4.120.0130.00616.70
7.4.110.0060.01317.13
7.4.100.0110.00716.73
7.4.90.0060.01216.82
7.4.80.0150.00317.12
7.4.70.0150.00316.84
7.4.60.0140.00316.91
7.4.50.0100.00916.71
7.4.40.0060.01616.73
7.4.30.0140.00316.91
7.4.20.0090.00916.73
7.4.10.0060.01416.91
7.4.00.0260.00016.93
7.3.330.0040.00416.52
7.3.320.0000.00513.56
7.3.310.0030.00316.56
7.3.300.0000.00716.66
7.3.290.0110.00416.63
7.3.260.0120.01216.68
7.3.250.0140.00416.94
7.3.240.0100.00716.71
7.3.230.0140.00416.89
7.3.220.0070.01016.66
7.3.210.0110.00716.77
7.3.200.0110.00717.08
7.3.190.0140.00716.74
7.3.180.0030.01616.84
7.3.170.0130.01316.98
7.3.160.0100.01416.79
7.3.150.0150.00316.93
7.3.140.0070.01816.87
7.3.130.0090.01717.04
7.3.120.0240.00016.73
7.3.110.0080.01216.67
7.3.100.0080.01117.02
7.3.90.0080.01216.66
7.3.80.0130.00716.76
7.3.70.0060.01216.69
7.3.60.0060.01116.87
7.3.50.0000.01816.84
7.3.40.0190.00616.71
7.3.30.0210.00316.72
7.3.20.0650.01216.84
7.3.10.0060.01316.72
7.3.00.0130.00916.72

preferences:
32.41 ms | 403 KiB | 5 Q