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->nodeValue); } $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.0100.01016.85
8.3.50.0160.00522.23
8.3.40.0040.01119.06
8.3.30.0040.01118.89
8.3.20.0050.00220.76
8.3.10.0040.00422.13
8.3.00.0080.00020.35
8.2.180.0080.00818.56
8.2.170.0040.01122.96
8.2.160.0110.00420.77
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.64
8.2.120.0040.00426.35
8.2.110.0070.00320.85
8.2.100.0070.00418.43
8.2.90.0050.00519.72
8.2.80.0050.00318.00
8.2.70.0050.00317.88
8.2.60.0030.00518.18
8.2.50.0050.00518.07
8.2.40.0030.00522.65
8.2.30.0040.00421.05
8.2.20.0000.00818.08
8.2.10.0000.00818.41
8.2.00.0040.00418.40
8.1.280.0100.01025.92
8.1.270.0060.00920.54
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.56
8.1.230.0040.00818.14
8.1.220.0040.00418.29
8.1.210.0060.00318.77
8.1.200.0060.00317.73
8.1.190.0030.00617.63
8.1.180.0030.00618.10
8.1.170.0080.00019.08
8.1.160.0000.00721.10
8.1.150.0070.00019.30
8.1.140.0080.00019.90
8.1.130.0000.00918.09
8.1.120.0070.00017.88
8.1.110.0050.00317.78
8.1.100.0040.00417.76
8.1.90.0060.00317.76
8.1.80.0040.00417.88
8.1.70.0000.00717.68
8.1.60.0060.00317.89
8.1.50.0040.00417.95
8.1.40.0030.00617.80
8.1.30.0060.00318.03
8.1.20.0000.00817.98
8.1.10.0060.00317.99
8.1.00.0080.00017.95
8.0.300.0040.00418.77
8.0.290.0050.00217.00
8.0.280.0070.00018.82
8.0.270.0040.00417.66
8.0.260.0030.00317.62
8.0.250.0000.00717.25
8.0.240.0030.00617.36
8.0.230.0030.00517.22
8.0.220.0050.00217.32
8.0.210.0040.00417.29
8.0.200.0080.00017.37
8.0.190.0030.00517.21
8.0.180.0040.00417.25
8.0.170.0090.00317.30
8.0.160.0000.00817.30
8.0.150.0000.00817.24
8.0.140.0040.00417.23
8.0.130.0030.00513.70
8.0.120.0080.00017.15
8.0.110.0080.00017.17
8.0.100.0070.00017.15
8.0.90.0040.00417.06
8.0.80.0130.00317.30
8.0.70.0040.00417.26
8.0.60.0080.00017.08
8.0.50.0000.00717.27
8.0.30.0080.00817.54
8.0.20.0110.00817.49
8.0.10.0030.00617.22
8.0.00.0120.00917.12
7.4.330.0000.00517.02
7.4.320.0030.00316.98
7.4.300.0070.00017.02
7.4.290.0050.00217.00
7.4.280.0050.00317.02
7.4.270.0070.00016.89
7.4.260.0030.00316.94
7.4.250.0040.00516.96
7.4.240.0020.00616.93
7.4.230.0000.00716.96
7.4.220.0200.00716.89
7.4.210.0090.00816.79
7.4.200.0000.00716.73
7.4.160.0100.00616.77
7.4.150.0070.01317.40
7.4.140.0120.01017.86
7.4.130.0100.00716.85
7.4.120.0100.00816.84
7.4.110.0040.01516.98
7.4.100.0120.01216.92
7.4.90.0060.01116.97
7.4.80.0040.01319.39
7.4.70.0090.00916.98
7.4.60.0130.00316.78
7.4.50.0110.00516.64
7.4.40.0110.00616.86
7.4.30.0110.00616.73
7.4.00.0050.01215.22
7.3.330.0000.00513.42
7.3.320.0000.00713.42
7.3.310.0040.00416.57
7.3.300.0000.00716.54
7.3.290.0050.00516.52
7.3.280.0100.01016.58
7.3.270.0110.00717.40
7.3.260.0040.01416.56
7.3.250.0120.01116.61
7.3.240.0110.01016.68
7.3.230.0150.00716.50
7.3.210.0090.00916.88
7.3.200.0110.00816.66
7.3.190.0090.01216.68
7.3.180.0140.00716.83
7.3.170.0100.00716.58
7.3.160.0030.01316.71
7.3.120.0050.01114.87
7.3.110.0080.00914.95
7.3.100.0100.00414.83
7.3.90.0060.00615.05
7.3.80.0050.01015.11
7.3.70.0080.00415.03
7.3.60.0110.00514.75
7.3.50.0090.00714.80
7.3.40.0050.01014.85
7.3.30.0080.00814.79
7.3.20.0030.01016.70
7.3.10.0060.00816.66
7.3.00.0050.00816.79
7.2.330.0090.00917.26
7.2.320.0120.01216.87
7.2.310.0320.02916.92
7.2.300.0110.00617.15
7.2.290.0110.00617.10
7.2.250.0070.01315.40
7.2.240.0080.00815.24
7.2.230.0040.01515.15
7.2.220.0050.00715.43
7.2.210.0060.00815.22
7.2.200.0040.00615.21
7.2.190.0020.01315.00
7.2.180.0050.00615.27
7.2.170.0060.01015.24
7.2.160.0070.00715.12
7.2.150.0090.00617.23
7.2.140.0100.00317.07
7.2.130.0030.01516.93
7.2.120.0030.01017.14
7.2.110.0060.00917.18
7.2.100.0040.01517.29
7.2.90.0100.00717.02
7.2.80.0080.00417.13
7.2.70.0040.01417.05
7.2.60.0070.00716.86
7.2.50.0100.00617.01
7.2.40.0110.00317.39
7.2.30.0090.00317.29
7.2.20.0030.01317.31
7.2.10.0080.00817.29
7.2.00.0030.01118.34
7.1.330.0080.00815.81
7.1.320.0030.01216.06
7.1.310.0040.01115.85
7.1.300.0060.00615.92
7.1.290.0070.00715.81
7.1.280.0040.00815.93
7.1.270.0070.00716.07
7.1.260.0100.00516.09
7.1.250.0130.00316.04
7.1.100.0030.01018.29
7.1.70.0030.00617.43
7.1.60.0040.00719.52
7.1.50.0080.00817.09
7.1.00.0000.07722.55
7.0.200.0220.00317.02
7.0.60.0070.09320.15
7.0.50.0100.07318.04
7.0.40.0070.08320.17
7.0.30.0200.09020.34
7.0.20.0170.08720.45
7.0.10.0100.04020.47
7.0.00.0100.05020.47
5.6.280.0000.03321.16
5.6.210.0000.08020.89
5.6.200.0100.05718.32
5.6.190.0030.04720.79
5.6.180.0300.05020.63
5.6.170.0330.07320.72
5.6.160.0170.07720.71
5.6.150.0030.07018.45
5.6.140.0100.08018.39
5.6.130.0070.06018.27
5.6.120.0030.05721.16
5.6.110.0070.08321.20
5.6.100.0100.05321.22
5.6.90.0100.08021.11
5.6.80.0100.08020.50
5.5.350.0130.08020.54
5.5.340.0170.06318.14
5.5.330.0030.09020.43
5.5.320.0500.04320.44
5.5.310.0270.08020.52
5.5.300.0070.04718.19
5.5.290.0100.04018.10
5.5.280.0100.09020.93
5.5.270.0030.05021.04
5.5.260.0030.04321.11
5.5.250.0100.06020.77
5.5.240.0330.04320.43

preferences:
37.09 ms | 401 KiB | 5 Q