3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Just compose the HTML sample */ $html='<html><head></head><body>'; $html.='<table class="grilla"><tbody><tr class="textEncabezadoGrilla" bgcolor="#C0DAF1" align="center"> <th>Juzgado Policía Local</th> <th>Rol Causa</th> </tr> <tr> <td class="textgrid2">2 JPL PROVIDENCIA</td> <td class="textgrid2">018092 - 2010</td> </tr> <tr> <td class="textgrid1">OVALLE JPL</td> <td class="textgrid1">13115 - 2010</td> </tr> </tbody></table> <table class="grilla"><tbody><tr class="textEncabezadoGrilla" bgcolor="#C0DAF1" align="center"> <th>Juzgado Policía Local</th> <th>Rol Causa</th> </tr> <tr> <td class="textgrid2">2 JPL PROVIDENCIA</td> <td class="textgrid2">018092 - 2010</td> </tr> <tr> <td class="textgrid1">OVALLE JPL</td> <td class="textgrid1">13115 - 2010</td> </tr> </tbody></table>'; $html.="</body></html>"; $doc=new DOMDocument(); $doc->loadHTML($html); $xpath=new DOMXPath($doc); $tds = array(); foreach($xpath->query('//table[@class="grilla"]/tbody/tr/td/text()') as $key => $td) { array_push($tds, $td->nodeValue); } print_r(array_chunk($tds, 2));

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.0080.00816.98
8.3.50.0130.00722.21
8.3.40.0120.00919.17
8.3.30.0120.00318.95
8.3.20.0030.00520.59
8.3.10.0060.00323.95
8.3.00.0030.00520.01
8.2.180.0120.00416.63
8.2.170.0080.00822.96
8.2.160.0070.01020.77
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.16
8.2.110.0080.00022.75
8.2.100.0090.00318.55
8.2.90.0080.00019.67
8.2.80.0000.00818.13
8.2.70.0000.01118.13
8.2.60.0000.00918.43
8.2.50.0080.00418.13
8.2.40.0030.00522.70
8.2.30.0020.00521.05
8.2.20.0080.00018.03
8.2.10.0000.00918.35
8.2.00.0000.00718.43
8.1.280.0060.00925.92
8.1.270.0060.00324.66
8.1.260.0050.00326.35
8.1.250.0070.01128.09
8.1.240.0030.00624.17
8.1.230.0030.00818.13
8.1.220.0040.00418.16
8.1.210.0070.00418.77
8.1.200.0030.00617.73
8.1.190.0050.00317.60
8.1.180.0080.00018.10
8.1.170.0000.00819.16
8.1.160.0040.00421.12
8.1.150.0040.00419.27
8.1.140.0050.00319.91
8.1.130.0070.00018.11
8.1.120.0050.00317.84
8.1.110.0000.00717.91
8.1.100.0000.00817.75
8.1.90.0000.00817.84
8.1.80.0030.00517.88
8.1.70.0070.00017.68
8.1.60.0050.00317.99
8.1.50.0000.00817.83
8.1.40.0030.00517.92
8.1.30.0000.00817.88
8.1.20.0040.00418.07
8.1.10.0000.00817.84
8.1.00.0030.00517.76
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0050.00318.82
8.0.270.0000.00717.57
8.0.260.0030.00318.87
8.0.250.0000.00717.37
8.0.240.0040.00417.31
8.0.230.0040.00417.37
8.0.220.0000.00817.28
8.0.210.0000.00717.28
8.0.200.0000.00617.21
8.0.190.0040.00417.36
8.0.180.0000.00817.30
8.0.170.0100.00017.20
8.0.160.0040.00417.29
8.0.150.0070.00017.26
8.0.140.0070.00017.09
8.0.130.0000.01013.64
8.0.120.0030.00617.14
8.0.110.0000.00817.32
8.0.100.0000.00717.29
8.0.90.0070.00017.28
8.0.80.0000.01517.20
8.0.70.0000.00717.27
8.0.60.0080.00017.07
8.0.50.0050.00317.25
8.0.30.0140.00517.23
8.0.20.0080.01117.59
8.0.10.0030.00517.16
8.0.00.0060.01217.24
7.4.330.0050.00017.05
7.4.320.0030.00316.96
7.4.300.0030.00316.80
7.4.290.0000.00716.83
7.4.280.0000.00817.02
7.4.270.0040.00416.93
7.4.260.0070.00016.89
7.4.250.0000.00716.91
7.4.240.0040.00316.93
7.4.230.0000.00716.86
7.4.220.0140.00516.89
7.4.210.0100.00816.97
7.4.200.0070.00016.94
7.4.160.0070.00716.75
7.4.150.0040.01317.40
7.4.140.0100.01017.86
7.4.130.0060.01216.81
7.4.120.0090.00916.80
7.4.110.0080.00916.92
7.4.100.0100.01316.88
7.4.90.0100.01316.67
7.4.80.0110.00919.39
7.4.70.0040.01316.58
7.4.60.0030.01416.79
7.4.50.0070.01016.96
7.4.40.0130.00316.81
7.4.30.0080.00816.86
7.4.00.0100.00715.09
7.3.330.0040.00413.27
7.3.320.0070.00013.25
7.3.310.0000.00716.63
7.3.300.0040.00216.54
7.3.290.0070.00016.52
7.3.280.0090.00616.57
7.3.270.0060.01217.40
7.3.260.0100.00716.90
7.3.250.0080.01316.65
7.3.240.0060.01216.77
7.3.230.0030.01416.51
7.3.210.0070.01116.87
7.3.200.0120.00416.56
7.3.190.0100.00716.55
7.3.180.0090.00616.78
7.3.170.0100.00716.79
7.3.160.0000.01516.56
7.3.10.0060.00916.65
7.3.00.0000.01616.51
7.2.330.0100.01017.17
7.2.320.0090.00916.77
7.2.310.0110.02716.78
7.2.300.0060.01516.82
7.2.290.0130.01017.00
7.2.130.0000.00917.19
7.2.120.0040.01417.18
7.2.110.0070.01017.21
7.2.100.0060.00317.15
7.2.90.0060.00917.03
7.2.80.0030.01217.27
7.2.70.0040.01217.13
7.2.60.0020.01217.03
7.2.50.0000.01616.93
7.2.40.0060.00616.98
7.2.30.0040.01217.14
7.2.20.0060.00617.16
7.2.10.0040.01117.00
7.2.00.0070.00518.43
7.1.250.0060.01015.94
7.1.200.0080.00416.02
7.1.100.0060.00918.13
7.1.70.0000.01117.55
7.1.60.0140.01119.52
7.1.50.0130.01717.15
7.1.00.0070.06722.55
7.0.200.0260.00416.63
7.0.60.0000.04319.95
7.0.50.0100.04718.13
7.0.40.0000.04720.25
7.0.30.0200.05320.26
7.0.20.0370.08320.32
7.0.10.0000.04720.36
7.0.00.0130.07720.30
5.6.280.0100.03021.04
5.6.210.0070.08320.83
5.6.200.0130.08018.30
5.6.190.0000.05020.79
5.6.180.0370.07320.67
5.6.170.0400.07720.64
5.6.160.0030.05320.63
5.6.150.0030.04018.44
5.6.140.0270.04318.38
5.6.130.0070.06718.28
5.6.120.0070.08721.28
5.6.110.0130.05321.14
5.6.100.0000.04321.20
5.6.90.0130.08721.19
5.6.80.0100.05020.64
5.5.350.0170.08320.54
5.5.340.0070.06318.24
5.5.330.0070.08720.48
5.5.320.0100.05020.48
5.5.310.0200.08720.66
5.5.300.0100.04018.10
5.5.290.0100.07318.13
5.5.280.0370.07720.99
5.5.270.0100.03321.00
5.5.260.0070.07320.92
5.5.250.0100.06720.86
5.5.240.0300.07020.17

preferences:
59.47 ms | 401 KiB | 5 Q