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(); foreach($xpath->query('//table[@class="grilla"]/tbody/tr/td/text()') as $key => $td) { array_push($tds, $td->nodeValue); } print_r(array_unique($tds)); $ee = array_chunk($tds, 2); print_r(array_unique($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.60.0030.01216.98
8.3.50.0160.00618.69
8.3.40.0040.01119.01
8.3.30.0090.00619.16
8.3.20.0080.00020.71
8.3.10.0090.00024.09
8.3.00.0030.00620.16
8.2.180.0160.00616.88
8.2.170.0120.00322.96
8.2.160.0100.00720.68
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00319.69
8.2.120.0040.00426.35
8.2.110.0060.00319.43
8.2.100.0060.00618.30
8.2.90.0080.00019.71
8.2.80.0110.00017.97
8.2.70.0030.00717.88
8.2.60.0040.00418.24
8.2.50.0100.00018.07
8.2.40.0030.00522.82
8.2.30.0040.00420.98
8.2.20.0080.00018.04
8.2.10.0080.00018.38
8.2.00.0030.00518.50
8.1.280.0120.00625.92
8.1.270.0030.00520.70
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00023.06
8.1.230.0090.00317.93
8.1.220.0090.00018.14
8.1.210.0000.00818.77
8.1.200.0000.01017.73
8.1.190.0050.00317.50
8.1.180.0000.00818.10
8.1.170.0040.00419.06
8.1.160.0000.00721.14
8.1.150.0050.00319.21
8.1.140.0000.00819.87
8.1.130.0000.00818.03
8.1.120.0040.00417.76
8.1.110.0070.00017.79
8.1.100.0040.00417.89
8.1.90.0000.00717.81
8.1.80.0000.00717.81
8.1.70.0040.00417.72
8.1.60.0040.00417.89
8.1.50.0060.00317.92
8.1.40.0000.00817.95
8.1.30.0040.00418.10
8.1.20.0030.00517.98
8.1.10.0000.00817.87
8.1.00.0000.00817.92
8.0.300.0040.00418.77
8.0.290.0050.00317.38
8.0.280.0040.00418.83
8.0.270.0050.00217.63
8.0.260.0080.00017.53
8.0.250.0080.00017.45
8.0.240.0080.00017.27
8.0.230.0000.00717.36
8.0.220.0000.00717.29
8.0.210.0040.00317.38
8.0.200.0030.00317.31
8.0.190.0000.00917.38
8.0.180.0000.00817.21
8.0.170.0040.00717.39
8.0.160.0000.00717.21
8.0.150.0000.00817.16
8.0.140.0040.00417.31
8.0.130.0050.00513.77
8.0.120.0000.00817.17
8.0.110.0040.00417.23
8.0.100.0000.00817.20
8.0.90.0040.00417.32
8.0.80.0070.01017.41
8.0.70.0000.00817.27
8.0.60.0040.00417.47
8.0.50.0000.00817.34
8.0.30.0130.00417.60
8.0.20.0100.01017.59
8.0.10.0040.00417.45
8.0.00.0080.01117.30
7.4.330.0000.00517.15
7.4.320.0000.00616.79
7.4.300.0040.00416.90
7.4.290.0070.00316.93
7.4.280.0030.00516.83
7.4.270.0070.00016.96
7.4.260.0080.00017.03
7.4.250.0000.00816.80
7.4.240.0000.00716.82
7.4.230.0030.00316.89
7.4.220.0120.01217.08
7.4.210.0050.01016.89
7.4.200.0000.00717.08
7.4.160.0090.00916.94
7.4.150.0070.01417.40
7.4.140.0060.01217.86
7.4.130.0070.01016.85
7.4.120.0110.00517.02
7.4.110.0140.00316.97
7.4.100.0150.00316.92
7.4.90.0090.00816.91
7.4.80.0160.00619.39
7.4.70.0060.01516.67
7.4.60.0040.02016.86
7.4.50.0040.01216.69
7.4.40.0070.01016.95
7.4.30.0090.00816.95
7.4.10.0140.00314.89
7.4.00.0050.01215.15
7.3.330.0070.00013.52
7.3.320.0000.00713.36
7.3.310.0030.00316.70
7.3.300.0030.00316.54
7.3.290.0080.00016.60
7.3.280.0090.00916.63
7.3.270.0070.01017.40
7.3.260.0140.00316.86
7.3.250.0080.01316.75
7.3.240.0090.00816.67
7.3.230.0240.00016.94
7.3.210.0130.00316.71
7.3.200.0100.01316.71
7.3.190.0180.00716.64
7.3.180.0100.00716.82
7.3.170.0040.01416.69
7.3.160.0200.00316.78
7.3.130.0030.01314.98
7.3.120.0030.01614.86
7.3.110.0140.00714.87
7.3.100.0070.01115.06
7.3.90.0070.00714.84
7.3.80.0090.00915.38
7.3.70.0030.01014.96
7.3.60.0030.01114.75
7.3.50.0030.00614.93
7.3.40.0080.00815.02
7.3.30.0110.00714.70
7.3.20.0070.00416.89
7.3.10.0000.01716.68
7.3.00.0070.01116.72
7.2.330.0100.00817.07
7.2.320.0090.00917.12
7.2.310.0150.02117.21
7.2.300.0000.01916.97
7.2.290.0150.00317.16
7.2.260.0100.01015.32
7.2.250.0040.01615.07
7.2.240.0040.01115.43
7.2.230.0120.00615.20
7.2.220.0070.01415.40
7.2.210.0110.00814.92
7.2.200.0040.00715.48
7.2.190.0070.00715.40
7.2.180.0000.01115.19
7.2.170.0070.00715.13
7.2.160.0030.01315.14
7.2.150.0070.01016.96
7.2.140.0100.00617.39
7.2.130.0030.01417.25
7.2.120.0040.01216.94
7.2.110.0040.00817.26
7.2.100.0100.01016.81
7.2.90.0070.00717.13
7.2.80.0080.00617.06
7.2.70.0030.01017.18
7.2.60.0030.01017.00
7.2.50.0060.00917.36
7.2.40.0060.00616.96
7.2.30.0030.00616.96
7.2.20.0040.00817.15
7.2.10.0090.00616.77
7.2.00.0060.00818.43
7.1.330.0060.00615.68
7.1.320.0030.01216.02
7.1.310.0030.00915.94
7.1.300.0070.01015.91
7.1.290.0060.00616.10
7.1.280.0100.01015.74
7.1.270.0060.00315.75
7.1.260.0070.00716.12
7.1.250.0090.00315.82
7.1.240.0060.00915.92
7.1.230.0090.00615.85
7.1.220.0100.01015.86
7.1.210.0030.01016.02
7.1.200.0020.01215.98
7.1.190.0030.00715.95
7.1.180.0070.00715.83
7.1.170.0030.00616.11
7.1.160.0030.01015.85
7.1.150.0040.01115.72
7.1.140.0000.01616.15
7.1.130.0000.01016.18
7.1.120.0040.01216.05
7.1.110.0070.01015.71
7.1.100.0020.01017.24
7.1.90.0070.00316.02
7.1.80.0060.00615.80
7.1.70.0040.00616.51
7.1.60.0110.00817.83
7.1.50.0050.01016.55
7.1.40.0060.00315.96
7.1.30.0040.01115.71
7.1.20.0080.00815.93
7.1.10.0080.00716.04
7.1.00.0020.04419.09
7.0.330.0070.00715.65
7.0.320.0030.00815.69
7.0.310.0060.00315.59
7.0.300.0070.01015.57
7.0.290.0000.00815.31
7.0.280.0000.01415.73
7.0.270.0040.00815.70
7.0.260.0070.00715.54
7.0.250.0080.00815.64
7.0.240.0090.00615.75
7.0.230.0030.00915.67
7.0.220.0100.00315.33
7.0.210.0080.00315.70
7.0.200.0110.00616.26
7.0.190.0030.01215.46
7.0.180.0080.00415.75
7.0.170.0040.00415.73
7.0.160.0110.00415.73
7.0.150.0040.01115.71
7.0.140.0040.01115.64
7.0.130.0040.01115.72
7.0.120.0060.00615.60
7.0.110.0060.01015.57
7.0.100.0030.01015.56
7.0.90.0040.01115.66
7.0.80.0030.01215.91
7.0.70.0060.01015.59
7.0.60.0050.02518.66
7.0.50.0050.04316.90
7.0.40.0020.02917.07
7.0.30.0270.03217.11
7.0.20.0150.03116.99
7.0.10.0100.02016.96
7.0.00.0080.02817.15
5.6.400.0140.00314.73
5.6.390.0070.00714.27
5.6.380.0080.00314.57
5.6.370.0040.01114.93
5.6.360.0090.00414.75
5.6.350.0030.00914.43
5.6.340.0060.00314.50
5.6.330.0070.00714.48
5.6.320.0050.00514.68
5.6.310.0000.00914.42
5.6.300.0100.00314.63
5.6.290.0040.01114.55
5.6.280.0050.02017.90
5.6.270.0030.00614.70
5.6.260.0030.00714.48
5.6.250.0090.00314.47
5.6.240.0000.01014.40
5.6.230.0000.01514.70
5.6.220.0070.01314.50
5.6.210.0110.02517.82
5.6.200.0070.02516.43
5.6.190.0030.02917.69
5.6.180.0200.02117.78
5.6.170.0180.03517.71
5.6.160.0070.03817.49
5.6.150.0020.02416.40
5.6.140.0030.04516.31
5.6.130.0070.02816.38
5.6.120.0100.02817.91
5.6.110.0100.03917.87
5.6.100.0070.04717.93
5.6.90.0060.04417.96
5.6.80.0080.02017.62
5.6.70.0030.00914.47
5.6.60.0060.00614.33
5.6.50.0030.01214.57
5.6.40.0060.00314.61
5.6.30.0100.00314.30
5.6.20.0040.01114.54
5.6.10.0110.00614.44
5.6.00.0040.00814.23
5.5.380.0080.00414.53
5.5.370.0000.01614.57
5.5.360.0060.00914.44
5.5.350.0170.04017.50
5.5.340.0070.04716.36
5.5.330.0050.04917.42
5.5.320.0270.02817.51
5.5.310.0220.03217.58
5.5.300.0080.03416.45
5.5.290.0000.04416.44
5.5.280.0050.04717.71
5.5.270.0080.02317.73
5.5.260.0110.04117.61
5.5.250.0120.04217.50
5.5.240.0180.04017.26
5.5.230.0100.00314.42
5.5.220.0080.00314.56
5.5.210.0040.01114.39
5.5.200.0090.00614.38
5.5.190.0030.00814.47
5.5.180.0040.00714.09
5.5.170.0070.00714.42
5.5.160.0070.01014.54
5.5.150.0070.00714.51
5.5.140.0040.01214.60
5.5.130.0000.01314.53
5.5.120.0030.01314.49
5.5.110.0120.00014.55
5.5.100.0000.01314.51
5.5.90.0030.00614.52
5.5.80.0060.00614.62
5.5.70.0030.01314.37
5.5.60.0030.01014.23
5.5.50.0070.00714.52
5.5.40.0030.01214.56
5.5.30.0000.01214.41
5.5.20.0070.00714.39
5.5.10.0030.00914.26
5.5.00.0040.00714.52

preferences:
56.13 ms | 401 KiB | 5 Q