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); } $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.40.0040.01119.01
8.3.30.0070.01118.89
8.3.20.0040.00420.66
8.3.10.0040.00422.14
8.3.00.0050.00320.20
8.2.170.0080.00822.96
8.2.160.0040.01120.59
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00019.73
8.2.120.0050.00326.35
8.2.110.0090.00022.42
8.2.100.0090.00319.53
8.2.90.0040.00418.13
8.2.80.0030.00517.97
8.2.70.0000.00818.42
8.2.60.0060.00318.55
8.2.50.0050.00518.10
8.2.40.0040.00421.10
8.2.30.0030.00719.80
8.2.20.0000.00918.04
8.2.10.0050.00318.46
8.2.00.0050.00318.50
8.1.270.0070.01420.93
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.16
8.1.230.0090.00319.62
8.1.220.0030.00618.16
8.1.210.0000.00818.77
8.1.200.0000.00917.50
8.1.190.0040.00417.60
8.1.180.0040.00418.10
8.1.170.0040.00419.11
8.1.160.0000.00724.25
8.1.150.0050.00319.32
8.1.140.0030.00619.89
8.1.130.0000.00718.07
8.1.120.0040.00417.89
8.1.110.0000.00717.88
8.1.100.0040.00417.91
8.1.90.0000.00717.87
8.1.80.0000.00817.88
8.1.70.0050.00317.73
8.1.60.0050.00317.92
8.1.50.0100.00017.92
8.1.40.0040.00417.95
8.1.30.0000.00818.08
8.1.20.0040.00418.09
8.1.10.0040.00417.89
8.1.00.0060.00317.90
8.0.300.0040.00420.15
8.0.290.0040.00417.13
8.0.280.0040.00418.82
8.0.270.0000.00717.63
8.0.260.0000.00717.62
8.0.250.0040.00417.18
8.0.240.0000.00917.35
8.0.230.0040.00417.35
8.0.220.0000.00817.27
8.0.210.0050.00317.19
8.0.200.0050.00217.30
8.0.190.0040.00417.37
8.0.180.0020.00517.17
8.0.170.0030.00717.20
8.0.160.0000.00817.31
8.0.150.0000.00717.22
8.0.140.0070.00017.21
8.0.130.0000.00713.71
8.0.120.0040.00417.26
8.0.110.0000.00817.18
8.0.100.0040.00417.18
8.0.90.0040.00417.37
8.0.80.0080.00817.29
8.0.70.0040.00417.22
8.0.60.0080.00017.25
8.0.50.0000.00817.11
8.0.30.0080.01317.24
8.0.20.0120.00717.57
8.0.10.0040.00417.34
8.0.00.0090.01117.09
7.4.330.0000.00517.09
7.4.320.0030.00316.93
7.4.300.0030.00316.88
7.4.290.0000.00716.95
7.4.280.0050.00216.98
7.4.270.0040.00417.00
7.4.260.0040.00416.87
7.4.250.0000.00716.99
7.4.240.0000.00716.92
7.4.230.0030.00516.89
7.4.220.0340.04417.08
7.4.210.0060.01016.91
7.4.200.0000.00816.95
7.4.160.0040.01216.82
7.4.150.0030.01417.40
7.4.140.0110.00717.86
7.4.130.0080.01017.02
7.4.120.0140.00316.74
7.4.110.0080.01116.88
7.4.100.0000.02016.93
7.4.90.0120.00616.80
7.4.80.0140.01019.39
7.4.70.0140.01016.98
7.4.60.0110.00616.90
7.4.50.0060.01216.75
7.4.40.0220.00016.93
7.4.30.0090.00916.86
7.4.00.0100.00815.15
7.3.330.0000.00513.30
7.3.320.0070.00013.45
7.3.310.0000.00816.63
7.3.300.0000.00816.61
7.3.290.0040.00416.48
7.3.280.0100.00816.63
7.3.270.0130.00417.40
7.3.260.0120.00616.57
7.3.250.0110.00916.71
7.3.240.0100.01016.80
7.3.230.0110.00716.87
7.3.210.0080.00816.76
7.3.200.0170.00016.82
7.3.190.0130.00316.81
7.3.180.0080.00816.64
7.3.170.0070.01116.94
7.3.160.0120.00416.80
7.3.120.0070.00715.03
7.3.110.0050.01015.01
7.3.100.0070.00714.75
7.3.90.0050.01114.77
7.3.80.0020.01014.77
7.3.70.0040.00614.97
7.3.60.0060.00614.95
7.3.50.0090.00614.80
7.3.40.0050.00914.85
7.3.30.0030.00914.87
7.3.20.0060.00916.74
7.3.10.0080.00616.72
7.3.00.0060.00716.52
7.2.330.0090.00917.01
7.2.320.0030.01516.90
7.2.310.0040.01516.99
7.2.300.0080.01116.81
7.2.290.0090.00917.14
7.2.250.0080.01015.14
7.2.240.0120.00915.30
7.2.230.0030.01415.32
7.2.220.0030.01315.34
7.2.210.0060.01015.34
7.2.200.0080.00315.20
7.2.190.0020.01415.24
7.2.180.0020.01115.24
7.2.170.0020.01415.14
7.2.130.0030.01016.89
7.2.120.0060.00617.17
7.2.110.0040.00816.87
7.2.100.0050.00517.08
7.2.90.0090.00016.99
7.2.80.0060.00916.95
7.2.70.0140.00016.73
7.2.60.0090.00216.84
7.2.50.0130.00316.98
7.2.40.0090.00616.84
7.2.30.0080.00616.83
7.2.20.0030.00916.97
7.2.10.0120.00617.16
7.2.00.0030.01018.25
7.1.330.0050.00916.11
7.1.320.0030.01015.89
7.1.310.0070.00915.95
7.1.300.0050.01015.80
7.1.290.0100.00516.01
7.1.280.0050.00815.93
7.1.270.0060.00815.83
7.1.260.0020.00916.00
7.1.250.0070.00415.87
7.1.200.0030.01216.07
7.1.100.0030.01217.83
7.1.70.0030.00617.20
7.1.60.0100.01319.52
7.1.50.0060.01617.27
7.1.00.0030.07722.52
7.0.200.0230.00416.60
7.0.60.0130.06720.12
7.0.50.0100.08018.11
7.0.40.0070.08020.19
7.0.30.0330.06020.32
7.0.20.0270.04320.25
7.0.10.0030.05320.30
7.0.00.0070.07720.33
5.6.280.0070.03021.20
5.6.210.0170.05320.94
5.6.200.0130.08318.35
5.6.190.0030.04320.83
5.6.180.0270.09020.70
5.6.170.0300.03720.67
5.6.160.0100.05320.71
5.6.150.0000.05318.45
5.6.140.0130.06718.38
5.6.130.0030.07718.40
5.6.120.0100.08321.28
5.6.110.0030.06321.27
5.6.100.0170.07721.22
5.6.90.0270.06721.17
5.6.80.0170.07320.60
5.5.350.0170.06720.56
5.5.340.0100.08318.20
5.5.330.0170.07320.49
5.5.320.0470.05020.50
5.5.310.0230.05720.50
5.5.300.0070.08718.14
5.5.290.0100.08018.22
5.5.280.0100.04721.08
5.5.270.0000.07721.04
5.5.260.0170.07320.93
5.5.250.0070.07020.93
5.5.240.0130.09020.36

preferences:
56.68 ms | 400 KiB | 5 Q