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()')); $table1 = $xpath->query('//table[@class="grilla"]')->item(0); $table2 = $xpath->query('//table[@class="grilla"]')->item(1); foreach($xpath->query('//table[@class="grilla"]') 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.0090.00616.75
8.3.50.0160.00522.15
8.3.40.0040.01119.08
8.3.30.0120.00319.14
8.3.20.0080.00020.59
8.3.10.0080.00023.86
8.3.00.0030.00620.16
8.2.180.0100.01318.66
8.2.170.0160.00622.96
8.2.160.0070.00720.83
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00519.52
8.2.120.0080.00026.35
8.2.110.0050.00520.69
8.2.100.0110.00018.30
8.2.90.0000.00819.47
8.2.80.0030.00517.97
8.2.70.0060.00317.88
8.2.60.0060.00318.30
8.2.50.0030.00618.07
8.2.40.0060.00322.83
8.2.30.0060.00320.96
8.2.20.0040.00418.00
8.2.10.0080.00018.52
8.2.00.0060.00318.37
8.1.280.0110.00725.92
8.1.270.0080.00020.57
8.1.260.0060.00328.09
8.1.250.0060.00328.09
8.1.240.0060.00322.56
8.1.230.0030.00818.03
8.1.220.0030.00518.29
8.1.210.0030.00518.77
8.1.200.0000.01017.75
8.1.190.0040.00417.60
8.1.180.0080.00018.10
8.1.170.0080.00019.02
8.1.160.0040.00421.06
8.1.150.0000.00719.23
8.1.140.0040.00419.93
8.1.130.0000.00717.96
8.1.120.0040.00417.86
8.1.110.0030.00517.84
8.1.100.0040.00417.79
8.1.90.0040.00417.76
8.1.80.0000.00717.82
8.1.70.0040.00417.74
8.1.60.0040.00417.97
8.1.50.0030.00617.78
8.1.40.0050.00317.80
8.1.30.0000.00817.96
8.1.20.0000.00817.93
8.1.10.0060.00317.85
8.1.00.0050.00317.91
8.0.300.0000.00718.77
8.0.290.0070.00017.13
8.0.280.0040.00418.88
8.0.270.0070.00017.76
8.0.260.0070.00017.61
8.0.250.0000.00817.35
8.0.240.0000.00817.35
8.0.230.0000.00717.28
8.0.220.0040.00417.12
8.0.210.0000.00817.21
8.0.200.0000.00717.22
8.0.190.0040.00417.37
8.0.180.0080.00017.31
8.0.170.0110.00317.33
8.0.160.0000.00717.27
8.0.150.0000.00717.29
8.0.140.0000.00717.15
8.0.130.0060.00013.70
8.0.120.0030.00517.10
8.0.110.0040.00417.23
8.0.100.0000.00717.27
8.0.90.0040.00417.16
8.0.80.0060.00917.22
8.0.70.0000.00717.18
8.0.60.0030.00517.10
8.0.50.0040.00417.29
8.0.30.0080.01217.26
8.0.20.0080.01117.47
8.0.10.0000.00817.25
8.0.00.0110.00817.02
7.4.330.0020.00217.25
7.4.320.0030.00316.80
7.4.300.0030.00316.96
7.4.290.0040.00416.90
7.4.280.0060.00316.79
7.4.270.0030.00416.98
7.4.260.0040.00416.90
7.4.250.0090.00016.94
7.4.240.0020.00616.95
7.4.230.0000.00716.64
7.4.220.0150.00716.93
7.4.210.0070.00916.93
7.4.200.0000.00716.86
7.4.160.0060.00916.84
7.4.150.0160.00317.40
7.4.140.0100.01317.86
7.4.130.0140.01016.69
7.4.120.0040.01616.71
7.4.110.0110.01116.73
7.4.100.0030.01516.72
7.4.90.0090.00916.86
7.4.80.0130.00619.39
7.4.70.0130.00816.78
7.4.60.0090.00916.73
7.4.50.0040.01116.61
7.4.40.0040.01416.91
7.4.30.0090.00916.82
7.4.00.0090.00715.14
7.3.330.0000.00613.45
7.3.320.0000.00613.28
7.3.310.0030.00316.62
7.3.300.0070.00016.58
7.3.290.0040.00416.50
7.3.280.0070.00516.56
7.3.270.0070.01117.40
7.3.260.0090.01316.62
7.3.250.0120.00716.65
7.3.240.0080.01116.69
7.3.230.0150.00316.73
7.3.210.0000.01716.57
7.3.200.0060.01216.93
7.3.190.0070.01016.61
7.3.180.0230.00016.88
7.3.170.0110.01116.71
7.3.160.0140.00516.71
7.3.120.0120.00614.82
7.3.110.0100.00715.14
7.3.100.0070.00715.12
7.3.90.0040.00714.96
7.3.80.0040.00814.82
7.3.70.0080.00315.04
7.3.60.0000.00914.75
7.3.50.0090.00614.84
7.3.40.0000.01215.04
7.3.30.0040.01215.12
7.3.20.0060.00316.84
7.3.10.0000.00916.66
7.3.00.0070.00716.45
7.2.330.0110.00717.06
7.2.320.0110.00717.07
7.2.310.0090.01217.07
7.2.300.0180.00217.08
7.2.290.0110.00717.14
7.2.250.0090.00915.06
7.2.240.0060.01615.07
7.2.230.0030.01015.29
7.2.220.0030.01015.35
7.2.210.0090.00615.23
7.2.200.0070.00715.17
7.2.190.0000.00915.31
7.2.180.0030.00615.43
7.2.170.0040.01115.18
7.2.60.0040.00916.90
7.2.00.0030.01219.71
7.1.330.0060.01015.98
7.1.320.0030.01015.78
7.1.310.0000.01115.92
7.1.300.0060.00316.13
7.1.290.0060.00615.92
7.1.280.0000.01416.05
7.1.270.0070.00316.02
7.1.260.0070.00715.97
7.1.200.0120.01015.48
7.1.100.0060.00617.80
7.1.70.0030.00617.56
7.1.60.0110.01119.52
7.1.50.0090.00917.29
7.1.00.0070.07022.56
7.0.200.0220.00416.68
7.0.60.0070.08320.04
7.0.50.0030.09018.09
7.0.40.0070.09020.22
7.0.30.0430.08020.19
7.0.20.0330.08020.45
7.0.10.0000.06720.32
7.0.00.0100.06320.34
5.6.280.0070.03021.04
5.6.210.0030.08320.80
5.6.200.0070.08318.38
5.6.190.0030.04720.61
5.6.180.0270.04320.63
5.6.170.0500.04720.63
5.6.160.0100.08020.69
5.6.150.0070.08718.44
5.6.140.0100.04018.49
5.6.130.0070.07718.36
5.6.120.0000.04721.23
5.6.110.0000.04721.18
5.6.100.0070.05321.18
5.6.90.0130.07721.15
5.6.80.0130.08320.54
5.5.350.0130.07020.59
5.5.340.0170.05718.18
5.5.330.0030.09020.34
5.5.320.0470.03020.57
5.5.310.0330.06320.46
5.5.300.0130.07318.10
5.5.290.0100.08318.14
5.5.280.0100.08321.01
5.5.270.0030.08720.93
5.5.260.0070.03721.11
5.5.250.0070.08020.75
5.5.240.0300.07320.43

preferences:
54.69 ms | 401 KiB | 5 Q