3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on 1hrJu

Abusive script

This script was stopped while abusing our resources

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
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
hhvm-3.22.00.0620.11890.97
hhvm-3.21.30.0340.12590.93
hhvm-3.21.00.1000.13990.17
hhvm-3.20.20.0880.16590.17
hhvm-3.19.20.1430.05964.82
hhvm-3.18.50.0400.12288.93
hhvm-3.18.40.0840.13388.23
hhvm-3.17.30.1480.12487.46
hhvm-3.15.40.0240.00010.38
hhvm-3.13.20.0390.03629.34
hhvm-3.12.140.0560.02129.19
hhvm-3.11.10.1220.11987.60
hhvm-3.10.10.1040.11484.94
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
5.4.450.0270.07019.61
5.4.440.0170.05719.98
5.4.430.0200.05719.59
5.4.420.0130.06319.49
5.4.410.0130.06019.71
5.4.400.0200.05319.23
5.4.390.0200.05319.41
5.4.380.0300.05319.13
5.4.370.0170.06719.41
5.4.360.0170.05319.38
5.4.350.0270.05019.13
5.4.340.0400.04719.52
5.4.320.0270.06719.06
5.4.310.0230.05019.15
5.4.300.0300.04319.27
5.4.290.0230.05019.26
5.4.280.0300.07019.38
5.4.270.0370.06019.30
5.4.260.0130.05719.30
5.4.250.0330.04019.64
5.4.240.0170.05719.30
5.4.230.0200.05319.27
5.4.220.0230.05019.26
5.4.210.0230.05319.35
5.4.200.0270.07719.64
5.4.190.0100.06319.25
5.4.180.0230.05019.39
5.4.170.0300.05319.42
5.4.160.0200.05319.36
5.4.150.0200.06719.34
5.4.140.0230.05016.53
5.4.130.0200.04716.61
5.4.120.0100.05716.70
5.4.110.0230.05016.79
5.4.100.0200.05016.55
5.3.290.0230.06015.02
5.3.280.0200.07015.04
5.3.270.0170.06014.88
5.3.260.0230.06714.95
5.3.250.0230.04714.96
5.3.240.0300.04714.79
5.3.230.0200.05014.98
5.3.220.0330.04014.95
5.3.210.0230.05314.81
5.3.200.0170.05715.02