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">13116 - 2011</td> </tr> </tbody></table>'; $html.="</body></html>"; $doc=new DOMDocument(); $doc->loadHTML($html); $xpath=new DOMXPath($doc); $tds = array(); var_dump($xpath->query('//table[@class="grilla"]/tbody/tr/td/text()')); foreach($xpath->query('//table[@class="grilla"]/tbody/tr/td/text()') as $key => $td) { array_push($tds, $td); } print_r($tds); $ee = 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.0130.00317.00
8.3.50.0130.01022.19
8.3.40.0140.00419.00
8.3.30.0150.00419.08
8.3.20.0040.00420.67
8.3.10.0030.00622.33
8.3.00.0080.00020.16
8.2.180.0120.00416.88
8.2.170.0060.00922.96
8.2.160.0140.00020.89
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0090.00021.47
8.2.120.0080.00026.35
8.2.110.0000.00920.88
8.2.100.0000.01218.43
8.2.90.0000.00819.34
8.2.80.0030.00518.13
8.2.70.0030.00617.88
8.2.60.0060.00318.55
8.2.50.0060.00618.07
8.2.40.0040.00422.82
8.2.30.0000.00721.04
8.2.20.0040.00418.08
8.2.10.0050.00318.46
8.2.00.0090.00018.54
8.1.280.0060.01625.92
8.1.270.0120.00320.68
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00019.82
8.1.230.0070.00418.29
8.1.220.0000.00818.29
8.1.210.0040.00418.77
8.1.200.0030.00717.72
8.1.190.0080.00017.61
8.1.180.0060.00318.10
8.1.170.0050.00319.14
8.1.160.0040.00421.15
8.1.150.0040.00419.21
8.1.140.0000.00919.92
8.1.130.0000.00718.09
8.1.120.0040.00417.85
8.1.110.0040.00417.73
8.1.100.0000.00717.81
8.1.90.0040.00417.86
8.1.80.0000.00717.90
8.1.70.0000.00817.78
8.1.60.0030.00617.92
8.1.50.0060.00317.79
8.1.40.0060.00317.75
8.1.30.0060.00317.98
8.1.20.0050.00318.07
8.1.10.0040.00417.94
8.1.00.0000.00817.79
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0040.00418.81
8.0.270.0040.00417.63
8.0.260.0000.00717.63
8.0.250.0040.00417.34
8.0.240.0040.00417.39
8.0.230.0070.00017.21
8.0.220.0040.00417.16
8.0.210.0000.00717.19
8.0.200.0050.00317.37
8.0.190.0040.00417.24
8.0.180.0040.00417.22
8.0.170.0060.00317.32
8.0.160.0000.00717.27
8.0.150.0000.00717.16
8.0.140.0030.00517.20
8.0.130.0030.00313.64
8.0.120.0040.00417.15
8.0.110.0000.00717.29
8.0.100.0000.00817.15
8.0.90.0080.00017.05
8.0.80.0040.01117.25
8.0.70.0020.00517.20
8.0.60.0050.00217.40
8.0.50.0040.00417.18
8.0.30.0120.00617.51
8.0.20.0140.00617.49
8.0.10.0030.00517.54
8.0.00.0090.00917.13
7.4.330.0060.00017.15
7.4.320.0030.00316.96
7.4.300.0030.00316.97
7.4.290.0040.00416.82
7.4.280.0000.00817.01
7.4.270.0000.00716.95
7.4.260.0040.00416.99
7.4.250.0040.00416.96
7.4.240.0020.00516.99
7.4.230.0050.00316.97
7.4.220.0090.00917.01
7.4.210.0100.00516.96
7.4.200.0000.00817.06
7.4.160.0040.01116.71
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0050.01316.93
7.4.120.0110.01116.83
7.4.110.0060.01216.92
7.4.100.0110.01416.84
7.4.90.0040.01416.76
7.4.80.0130.00719.39
7.4.70.0140.00316.88
7.4.60.0070.01016.67
7.4.50.0030.01316.73
7.4.40.0070.01116.75
7.4.30.0030.01316.80
7.4.00.0100.00615.27
7.3.330.0000.00613.30
7.3.320.0030.00613.44
7.3.310.0040.00416.54
7.3.300.0000.00716.62
7.3.290.0000.00716.52
7.3.280.0100.00716.55
7.3.270.0060.01217.40
7.3.260.0050.01116.62
7.3.250.0110.00916.75
7.3.240.0120.00716.80
7.3.230.0070.01116.91
7.3.210.0080.01216.93
7.3.200.0100.00716.57
7.3.190.0090.00916.63
7.3.180.0070.01016.64
7.3.170.0070.01017.04
7.3.160.0100.00716.61
7.3.120.0100.00715.27
7.3.110.0040.01315.09
7.3.100.0110.00815.18
7.3.90.0030.01314.81
7.3.80.0110.00715.04
7.3.70.0000.00915.12
7.3.60.0120.00315.15
7.3.50.0060.00914.94
7.3.40.0060.00914.98
7.3.30.0110.00314.93
7.3.20.0100.00616.68
7.3.10.0030.00916.67
7.3.00.0030.01016.74
7.2.330.0090.00916.99
7.2.320.0140.00417.04
7.2.310.0040.01516.91
7.2.300.0110.00717.00
7.2.290.0100.01016.90
7.2.250.0040.01315.07
7.2.240.0090.00915.30
7.2.230.0040.01415.17
7.2.220.0030.01215.41
7.2.210.0000.01515.09
7.2.200.0060.00615.39
7.2.190.0090.00915.23
7.2.180.0030.01315.11
7.2.170.0060.00315.27
7.2.130.0030.00916.90
7.2.120.0000.01316.94
7.2.110.0170.00017.07
7.2.100.0120.01517.05
7.2.90.0060.01516.86
7.2.80.0130.00717.06
7.2.70.0260.00616.85
7.2.60.0070.01016.87
7.2.50.0060.01217.01
7.2.40.0090.00417.17
7.2.30.0100.00716.96
7.2.20.0310.00316.98
7.2.10.0110.00717.17
7.2.00.0050.00718.18
7.1.330.0000.01315.79
7.1.320.0040.00816.02
7.1.310.0030.01016.06
7.1.300.0000.00916.14
7.1.290.0030.01215.77
7.1.280.0030.00615.89
7.1.270.0070.01115.72
7.1.260.0070.00315.63
7.1.250.0100.00315.79
7.1.200.0000.01015.79
7.1.100.0000.01217.98
7.1.70.0040.00717.48
7.1.60.0120.00719.52
7.1.50.0040.01416.99
7.1.00.0100.06722.61
7.0.200.0280.00016.88
7.0.60.0130.06721.88
7.0.50.0030.08318.04
7.0.40.0030.08020.25
7.0.30.0300.08020.46
7.0.20.0200.09020.36
7.0.10.0070.04720.48
7.0.00.0100.08320.39
5.6.280.0070.03021.25
5.6.210.0130.07020.75
5.6.200.0100.07718.38
5.6.190.0070.04020.55
5.6.180.0330.05720.63
5.6.170.0370.07720.64
5.6.160.0000.05020.75
5.6.150.0130.05018.40
5.6.140.0100.08018.34
5.6.130.0030.04318.33
5.6.120.0170.07721.23
5.6.110.0070.04321.12
5.6.100.0070.07021.15
5.6.90.0170.06721.15
5.6.80.0130.07320.60
5.5.350.0000.08720.60
5.5.340.0030.06018.22
5.5.330.0170.07720.51
5.5.320.0200.06020.52
5.5.310.0170.05020.41
5.5.300.0130.07718.18
5.5.290.0170.08318.23
5.5.280.0130.03721.01
5.5.270.0100.08321.00
5.5.260.0030.07720.78
5.5.250.0100.07720.85
5.5.240.0300.05020.20

preferences:
60.39 ms | 401 KiB | 5 Q