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_unique(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.0110.00816.88
8.3.50.0120.01122.21
8.3.40.0150.00619.18
8.3.30.0070.00719.18
8.3.20.0070.00020.54
8.3.10.0080.00023.86
8.3.00.0050.00320.16
8.2.180.0140.00717.00
8.2.170.0070.00722.96
8.2.160.0090.01220.72
8.2.150.0030.00524.18
8.2.140.0070.00324.66
8.2.130.0030.00619.59
8.2.120.0160.00026.35
8.2.110.0000.01020.94
8.2.100.0100.00718.23
8.2.90.0040.00419.48
8.2.80.0030.00618.00
8.2.70.0090.00517.75
8.2.60.0030.00618.18
8.2.50.0030.00718.07
8.2.40.0000.00822.70
8.2.30.0040.00420.94
8.2.20.0000.00818.11
8.2.10.0000.00818.53
8.2.00.0040.00418.44
8.1.280.0150.00025.92
8.1.270.0040.00420.70
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00324.13
8.1.230.0090.00324.14
8.1.220.0030.00618.16
8.1.210.0030.00718.77
8.1.200.0090.00017.73
8.1.190.0000.00817.73
8.1.180.0040.00418.10
8.1.170.0000.00818.98
8.1.160.0030.00521.10
8.1.150.0040.00419.16
8.1.140.0050.00319.95
8.1.130.0000.00718.15
8.1.120.0030.00517.87
8.1.110.0000.00817.86
8.1.100.0050.00217.70
8.1.90.0000.00817.80
8.1.80.0000.00717.73
8.1.70.0000.00817.70
8.1.60.0080.00017.92
8.1.50.0030.00517.77
8.1.40.0050.00317.91
8.1.30.0080.00018.02
8.1.20.0000.00818.04
8.1.10.0090.00017.85
8.1.00.0030.00617.89
8.0.300.0080.00018.77
8.0.290.0080.00017.25
8.0.280.0070.00018.77
8.0.270.0000.00717.53
8.0.260.0030.00517.57
8.0.250.0040.00417.29
8.0.240.0100.00017.38
8.0.230.0040.00417.32
8.0.220.0030.00317.27
8.0.210.0040.00417.31
8.0.200.0030.00317.38
8.0.190.0000.00817.23
8.0.180.0040.00417.29
8.0.170.0090.00017.43
8.0.160.0050.00217.29
8.0.150.0070.00017.23
8.0.140.0030.00517.32
8.0.130.0030.00613.72
8.0.120.0000.00817.32
8.0.110.0040.00417.38
8.0.100.0070.00017.39
8.0.90.0000.00817.31
8.0.80.0000.01817.25
8.0.70.0070.00017.25
8.0.60.0040.00417.20
8.0.50.0020.00517.34
8.0.30.0080.01417.54
8.0.20.0110.00817.57
8.0.10.0000.00817.34
8.0.00.0140.00517.34
7.4.330.0020.00217.20
7.4.320.0080.00016.90
7.4.300.0070.00016.92
7.4.290.0030.00316.90
7.4.280.0070.00016.80
7.4.270.0000.00816.79
7.4.260.0070.00016.95
7.4.250.0040.00416.88
7.4.240.0050.00316.99
7.4.230.0040.00416.88
7.4.220.0110.00916.97
7.4.210.0110.00716.86
7.4.200.0030.00517.00
7.4.160.0080.00816.82
7.4.150.0100.00717.40
7.4.140.0140.00517.86
7.4.130.0110.00716.78
7.4.120.0080.01217.00
7.4.110.0060.01216.98
7.4.100.0130.00716.68
7.4.90.0040.01316.75
7.4.80.0110.01119.39
7.4.70.0030.01716.84
7.4.60.0060.01016.72
7.4.50.0080.00816.75
7.4.40.0060.01116.88
7.4.30.0120.00417.05
7.4.00.0060.01015.15
7.3.330.0040.00413.48
7.3.320.0030.00313.28
7.3.310.0000.00816.66
7.3.300.0070.00016.62
7.3.290.0060.00216.64
7.3.280.0060.00916.61
7.3.270.0120.00617.40
7.3.260.0150.00316.57
7.3.250.0120.01116.71
7.3.240.0090.00816.79
7.3.230.0030.01416.60
7.3.210.0060.01016.83
7.3.200.0110.01116.88
7.3.190.0100.00616.73
7.3.180.0070.01016.77
7.3.170.0140.00916.86
7.3.160.0110.00716.69
7.2.330.0110.00717.09
7.2.320.0130.01016.87
7.2.310.0080.01216.88
7.2.300.0090.01017.05
7.2.290.0180.00016.90
7.2.60.0080.00816.87
7.2.00.0090.00619.64
7.1.200.0040.00415.84
7.1.100.0030.01018.33
7.1.70.0000.00717.29
7.1.60.0100.01619.52
7.1.50.0130.00316.99
7.1.00.0000.07722.56
7.0.200.0220.00316.80
7.0.60.0030.06720.21
7.0.50.0070.07318.10
7.0.40.0030.04320.26
7.0.30.0270.05020.45
7.0.20.0300.07020.43
7.0.10.0130.03720.23
7.0.00.0130.08020.30
5.6.280.0000.03321.25
5.6.210.0000.05020.66
5.6.200.0200.05018.46
5.6.190.0030.04320.66
5.6.180.0230.04320.80
5.6.170.0300.07020.68
5.6.160.0070.07020.79
5.6.150.0070.03718.44
5.6.140.0000.04018.40
5.6.130.0100.05718.39
5.6.120.0170.07321.25
5.6.110.0170.06721.26
5.6.100.0070.08321.22
5.6.90.0070.08321.01
5.6.80.0100.08320.57
5.5.350.0170.07020.57
5.5.340.0200.06318.08
5.5.330.0070.08720.43
5.5.320.0400.07020.48
5.5.310.0200.04320.45
5.5.300.0070.05318.14
5.5.290.0070.05318.12
5.5.280.0100.07020.99
5.5.270.0030.06020.98
5.5.260.0130.07721.00
5.5.250.0170.05320.71
5.5.240.0270.07320.39

preferences:
42.17 ms | 401 KiB | 5 Q