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"]') 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.0160.00316.88
8.3.50.0070.01418.55
8.3.40.0130.00619.09
8.3.30.0120.00319.01
8.3.20.0030.00620.57
8.3.10.0040.00422.05
8.3.00.0030.00520.00
8.2.180.0120.00317.00
8.2.170.0090.00622.96
8.2.160.0100.00321.03
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0060.00319.52
8.2.120.0080.00026.35
8.2.110.0080.00020.77
8.2.100.0060.00618.30
8.2.90.0040.00419.78
8.2.80.0040.00418.00
8.2.70.0030.00618.00
8.2.60.0000.00818.43
8.2.50.0050.00518.07
8.2.40.0030.00522.74
8.2.30.0000.00721.01
8.2.20.0040.00418.05
8.2.10.0080.00018.41
8.2.00.0080.00018.40
8.1.280.0100.01325.92
8.1.270.0070.01322.38
8.1.260.0060.00328.09
8.1.250.0060.00328.09
8.1.240.0040.00422.56
8.1.230.0060.00618.14
8.1.220.0060.00318.14
8.1.210.0080.00018.77
8.1.200.0040.00717.85
8.1.190.0050.00317.86
8.1.180.0040.00418.10
8.1.170.0050.00319.09
8.1.160.0040.00421.10
8.1.150.0000.00819.17
8.1.140.0040.00419.95
8.1.130.0040.00417.78
8.1.120.0050.00217.73
8.1.110.0000.00817.75
8.1.100.0040.00417.89
8.1.90.0000.00817.73
8.1.80.0000.00717.88
8.1.70.0040.00417.80
8.1.60.0040.00417.88
8.1.50.0090.00017.82
8.1.40.0000.00917.88
8.1.30.0050.00317.96
8.1.20.0040.00418.08
8.1.10.0080.00017.89
8.1.00.0000.00817.91
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0040.00418.80
8.0.270.0040.00417.61
8.0.260.0070.00017.19
8.0.250.0070.00017.34
8.0.240.0030.00617.37
8.0.230.0040.00417.39
8.0.220.0040.00417.30
8.0.210.0000.00717.16
8.0.200.0000.00717.26
8.0.190.0000.00817.38
8.0.180.0030.00617.31
8.0.170.0090.00317.34
8.0.160.0020.00517.33
8.0.150.0050.00217.25
8.0.140.0040.00417.27
8.0.130.0000.00813.71
8.0.120.0040.00417.11
8.0.110.0000.00717.16
8.0.100.0000.00717.18
8.0.90.0000.00717.28
8.0.80.0040.01117.32
8.0.70.0030.00517.09
8.0.60.0070.00017.18
8.0.50.0000.00717.17
8.0.30.0060.01317.37
8.0.20.0110.01217.51
8.0.10.0000.00817.39
8.0.00.0120.00617.18
7.4.330.0000.00517.16
7.4.320.0030.00316.82
7.4.300.0030.00317.00
7.4.290.0000.00716.81
7.4.280.0000.00816.94
7.4.270.0040.00417.04
7.4.260.0040.00316.99
7.4.250.0050.00316.83
7.4.240.0020.00616.88
7.4.230.0040.00416.75
7.4.220.0040.01517.00
7.4.210.0090.00716.89
7.4.200.0080.00017.01
7.4.160.0090.00616.64
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0110.00716.75
7.4.120.0090.01316.98
7.4.110.0090.00916.96
7.4.100.0110.00716.71
7.4.90.0090.00916.92
7.4.80.0060.01219.39
7.4.70.0070.01116.76
7.4.60.0100.00716.84
7.4.50.0100.00616.94
7.4.40.0140.00316.60
7.4.30.0070.01016.97
7.3.330.0030.00313.46
7.3.320.0000.00813.45
7.3.310.0040.00416.43
7.3.300.0000.00716.62
7.3.290.0040.00416.45
7.3.280.0070.00916.59
7.3.270.0100.01017.40
7.3.260.0050.01116.81
7.3.250.0100.01016.64
7.3.240.0070.01016.68
7.3.230.0100.00916.89
7.3.210.0070.01016.86
7.3.200.0140.00716.93
7.3.190.0130.00316.81
7.3.180.0060.01116.80
7.3.170.0140.00416.91
7.3.160.0110.00716.72
7.2.330.0090.01216.79
7.2.320.0120.00717.00
7.2.310.0070.01017.07
7.2.300.0130.00417.06
7.2.290.0070.01017.00
7.2.110.0120.00316.63
7.2.100.0090.00616.71
7.2.90.0100.00716.70
7.2.80.0000.01716.63
7.2.70.0110.00317.13
7.2.60.0070.00716.86
7.2.50.0030.01417.22
7.2.40.0030.01116.85
7.2.30.0040.00817.18
7.2.20.0100.00717.03
7.2.10.0100.00316.98
7.2.00.0070.00618.40
7.1.230.0120.00416.11
7.1.220.0060.01016.00
7.1.210.0060.00615.78
7.1.200.0060.00616.00
7.1.190.0100.00316.02
7.1.180.0030.01015.96
7.1.170.0030.01315.79
7.1.160.0060.00915.72
7.1.150.0040.00816.12
7.1.140.0070.00715.92
7.1.130.0120.00315.89
7.1.120.0030.01016.02
7.1.110.0060.00615.66
7.1.100.0060.01017.03
7.1.90.0110.00415.71
7.1.80.0040.01115.97
7.1.70.0030.00716.62
7.1.60.0050.01117.77
7.1.50.0170.01516.33
7.1.40.2760.01615.47
7.1.30.0390.00716.07
7.1.20.0420.00715.89
7.1.10.0220.01015.63
7.1.00.0100.04319.27
7.0.310.0090.00315.51
7.0.300.0090.00615.65
7.0.290.0070.00715.62
7.0.280.0110.00415.52
7.0.270.0040.00915.50
7.0.260.0030.00915.55
7.0.250.0070.00715.60
7.0.240.0030.01415.60
7.0.230.0170.00015.63
7.0.220.0080.00815.44
7.0.210.0040.00815.38
7.0.200.0110.00616.30
7.0.190.0370.00615.58
7.0.180.0360.00815.56
7.0.170.0380.01115.46
7.0.160.0380.00515.44
7.0.150.0170.01015.56
7.0.140.0170.00715.59
7.0.130.0220.00615.68
7.0.120.0180.01115.45
7.0.110.0170.00715.39
7.0.100.0240.00415.53
7.0.90.0180.00915.60
7.0.80.0190.00815.41
7.0.70.0180.00715.47
7.0.60.0100.04517.67
7.0.50.0120.04716.73
7.0.40.0100.02716.93
7.0.30.0180.04716.83
7.0.20.0200.04716.97
7.0.10.0150.04716.94
7.0.00.0130.04616.93
5.6.380.0000.01415.01
5.6.370.0150.00614.53
5.6.360.0100.01314.37
5.6.350.0140.01014.40
5.6.340.0160.01614.92
5.6.330.0110.01114.45
5.6.320.0140.01114.33
5.6.310.0200.00314.18
5.6.300.0140.01414.20
5.6.290.0120.01514.34
5.6.280.0120.02017.86
5.6.270.0160.01114.80
5.6.260.0130.01314.63
5.6.250.0150.01214.52
5.6.240.0160.00814.31
5.6.230.0210.00214.49
5.6.220.0200.00714.38
5.6.210.0060.04617.78
5.6.200.0120.02516.33
5.6.190.0090.02317.62
5.6.180.0280.03617.44
5.6.170.0220.04517.67
5.6.160.0170.03217.66
5.6.150.0110.04616.43
5.6.140.0110.02416.35
5.6.130.0050.04916.33
5.6.120.0130.03117.89
5.6.110.0120.04217.76
5.6.100.0120.04117.90
5.6.90.0130.04617.89
5.6.80.0110.03617.46
5.6.70.0130.01014.58
5.6.60.0190.00814.23
5.6.50.0120.01614.33
5.6.40.0160.00814.30
5.6.30.0160.01114.19
5.6.20.0220.00214.43
5.6.10.0150.01214.46
5.6.00.0190.00814.42
5.5.380.0120.00911.00
5.5.370.0180.00311.47
5.5.360.0120.00411.07
5.5.350.0080.02815.92
5.5.340.0210.03214.84
5.5.330.0120.04215.93
5.5.320.0300.04215.87
5.5.310.0190.04215.75
5.5.300.0040.04214.67
5.5.290.0120.04514.69
5.5.280.0080.02716.21
5.5.270.0080.02716.16
5.5.260.0030.05115.99
5.5.250.0100.03815.99
5.5.240.0160.04115.86
5.5.230.0090.00611.14
5.5.220.0080.00811.09
5.5.210.0070.01011.31
5.5.200.0090.00911.18
5.5.190.0100.01011.14
5.5.180.0080.00711.12
5.5.170.0150.00914.09
5.5.160.0130.00011.22
5.5.150.0120.00211.38
5.5.140.0120.00011.23
5.5.130.0100.01011.32
5.5.120.0130.00510.96
5.5.110.0160.00311.12
5.5.100.0120.00011.03
5.5.90.0110.00410.89
5.5.80.0120.00611.02
5.5.70.0130.00311.30
5.5.60.0100.00811.04
5.5.50.0190.00011.05
5.5.40.0080.00811.18
5.5.30.0180.00010.98
5.5.20.0140.00311.15
5.5.10.0090.00611.45
5.5.00.0060.01211.21

preferences:
52.18 ms | 400 KiB | 5 Q