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(); foreach($xpath->query('//table[@class="grilla"]/tbody/tr/td/text()') as $key => $td) { array_push($tds, $td->nodeValue); } print_r(array_unique($tds)); $ee = array_chunk($tds, 2); print_r($ee);

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.0060.01317.00
8.3.50.0250.00522.19
8.3.40.0060.00919.22
8.3.30.0090.00619.36
8.3.20.0080.00020.62
8.3.10.0040.00423.90
8.3.00.0040.00420.16
8.2.180.0120.00317.13
8.2.170.0150.00322.96
8.2.160.0070.00720.89
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00519.80
8.2.120.0040.00426.35
8.2.110.0060.00320.87
8.2.100.0090.00318.54
8.2.90.0050.00319.68
8.2.80.0040.00418.00
8.2.70.0030.00618.00
8.2.60.0000.00818.30
8.2.50.0030.00718.07
8.2.40.0030.00622.66
8.2.30.0040.00420.96
8.2.20.0000.00918.03
8.2.10.0040.00418.61
8.2.00.0030.00618.49
8.1.280.0070.01025.92
8.1.270.0070.01120.76
8.1.260.0060.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00622.45
8.1.230.0080.00418.16
8.1.220.0050.00318.28
8.1.210.0040.00418.77
8.1.200.0030.00717.60
8.1.190.0000.00817.73
8.1.180.0030.00518.10
8.1.170.0080.00019.09
8.1.160.0000.00721.05
8.1.150.0000.00719.21
8.1.140.0040.00417.73
8.1.130.0070.00018.09
8.1.120.0050.00217.91
8.1.110.0050.00217.71
8.1.100.0030.00517.76
8.1.90.0000.00717.79
8.1.80.0040.00417.87
8.1.70.0050.00217.72
8.1.60.0000.00918.00
8.1.50.0040.00417.80
8.1.40.0040.00417.91
8.1.30.0030.00618.10
8.1.20.0040.00417.88
8.1.10.0030.00617.90
8.1.00.0000.00917.81
8.0.300.0050.00318.77
8.0.290.0000.00717.13
8.0.280.0070.00018.85
8.0.270.0040.00417.13
8.0.260.0070.00017.52
8.0.250.0070.00017.35
8.0.240.0040.00417.26
8.0.230.0030.00317.36
8.0.220.0050.00217.22
8.0.210.0070.00017.28
8.0.200.0000.00617.20
8.0.190.0080.00017.25
8.0.180.0080.00017.18
8.0.170.0080.00417.32
8.0.160.0070.00017.21
8.0.150.0040.00417.33
8.0.140.0040.00417.08
8.0.130.0060.00013.69
8.0.120.0090.00017.25
8.0.110.0030.00517.33
8.0.100.0040.00417.34
8.0.90.0050.00217.18
8.0.80.0030.01317.18
8.0.70.0000.00717.33
8.0.60.0000.00817.41
8.0.50.0050.00317.17
8.0.30.0120.00917.37
8.0.20.0110.00917.60
8.0.10.0040.00417.34
8.0.00.0060.01117.04
7.4.330.0030.00317.09
7.4.320.0030.00316.84
7.4.300.0000.00716.93
7.4.290.0000.00916.94
7.4.280.0080.00016.94
7.4.270.0030.00316.96
7.4.260.0000.00716.85
7.4.250.0040.00416.89
7.4.240.0030.00517.00
7.4.230.0040.00417.04
7.4.220.0130.00917.01
7.4.210.0090.00816.95
7.4.200.0040.00416.89
7.4.160.0070.01016.92
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0100.00716.97
7.4.120.0110.00716.81
7.4.110.0110.00716.66
7.4.100.0060.01316.73
7.4.90.0040.01416.73
7.4.80.0110.00819.39
7.4.70.0070.01016.93
7.4.60.0060.01016.90
7.4.50.0090.00916.57
7.4.40.0090.01216.89
7.4.30.0130.01017.14
7.4.00.0100.00615.10
7.3.330.0000.00613.45
7.3.320.0000.00813.28
7.3.310.0000.00716.52
7.3.300.0070.00016.55
7.3.290.0040.00316.62
7.3.280.0070.00916.65
7.3.270.0120.00917.40
7.3.260.0030.01316.48
7.3.250.0080.01116.70
7.3.240.0070.00916.82
7.3.230.0110.00716.66
7.3.210.0060.00916.91
7.3.200.0130.00316.59
7.3.190.0090.01216.78
7.3.180.0060.01016.67
7.3.170.0140.00416.65
7.3.160.0060.01016.49
7.3.120.0070.00714.88
7.3.110.0080.01214.95
7.3.100.0070.00715.03
7.3.90.0000.01215.13
7.3.80.0040.00414.84
7.3.70.0090.00614.91
7.3.60.0030.00715.09
7.3.50.0040.00714.82
7.3.40.0000.01314.91
7.3.30.0070.00714.98
7.3.20.0080.00616.91
7.3.10.0070.01016.65
7.3.00.0090.00616.80
7.2.330.0030.01316.98
7.2.320.0170.00717.02
7.2.310.0120.01616.90
7.2.300.0210.00017.19
7.2.290.0090.01216.79
7.2.250.0070.01415.20
7.2.240.0100.01014.96
7.2.230.0130.00315.22
7.2.220.0070.00715.41
7.2.210.0000.01115.10
7.2.200.0070.00315.37
7.2.190.0000.01315.49
7.2.180.0100.00615.37
7.2.170.0100.00314.90
7.2.00.0030.00919.37
7.1.330.0040.01116.11
7.1.320.0030.00715.87
7.1.310.0000.01216.01
7.1.300.0030.00716.23
7.1.290.0030.01015.92
7.1.280.0070.00415.80
7.1.270.0090.00315.71
7.1.260.0060.01016.17
7.1.100.0030.01018.49
7.1.70.0060.00917.18
7.1.60.0140.01019.52
7.1.50.0000.01516.89
7.1.00.0000.07722.66
7.0.200.0220.00716.82
7.0.60.0170.07019.90
7.0.50.0070.05718.08
7.0.40.0070.04020.45
7.0.30.0230.05020.35
7.0.20.0230.08720.25
7.0.10.0100.05320.22
7.0.00.0030.09020.30
5.6.280.0000.03321.21
5.6.210.0070.05720.64
5.6.200.0030.04318.45
5.6.190.0000.05020.65
5.6.180.0270.08020.62
5.6.170.0330.03720.60
5.6.160.0070.05020.71
5.6.150.0100.03718.30
5.6.140.0100.08018.37
5.6.130.0000.06018.43
5.6.120.0070.05721.11
5.6.110.0070.08321.20
5.6.100.0170.08321.18
5.6.90.0070.06721.02
5.6.80.0000.08720.57
5.5.350.0130.08020.51
5.5.340.0100.07718.22
5.5.330.0070.04720.59
5.5.320.0300.06720.47
5.5.310.0330.08020.52
5.5.300.0030.06018.07
5.5.290.0070.07318.10
5.5.280.0170.07720.90
5.5.270.0130.06320.90
5.5.260.0130.07720.86
5.5.250.0100.08020.77
5.5.240.0270.07320.43

preferences:
53.29 ms | 401 KiB | 5 Q