3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<< HTML <a>some stuff we don not want</a> <table cellpadding="2" cellspacing="1" bgcolor="#A0A0A0"> </table> <table id="anothertable"> </table> HTML; $dom = new DOMDocument(); $dom->loadHTML($input); foreach ($dom->getElementsByTagName('table') as $element) { var_dump($element; }

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)
5.4.180.0060.03612.38
5.4.170.0200.03812.38
5.4.160.0190.04312.36
5.4.150.0250.06712.36
5.4.140.0170.04212.05
5.4.130.0130.04712.04
5.4.120.0130.04412.00
5.4.110.0120.04412.00
5.4.100.0190.04011.99
5.4.90.0160.04211.99
5.4.80.0150.04212.00
5.4.70.0210.06611.99
5.4.60.0170.03911.99
5.4.50.0140.04111.99
5.4.40.0150.04111.98
5.4.30.0170.04111.98
5.4.20.0150.04111.97
5.4.10.0130.04311.98
5.4.00.0120.04411.46
5.3.270.0250.06512.72
5.3.260.0110.04812.72
5.3.250.0160.04312.72
5.3.240.0120.04712.71
5.3.230.0140.04812.71
5.3.220.0400.08112.68
5.3.210.0200.04012.68
5.3.200.0120.04712.68
5.3.190.0100.05112.67
5.3.180.0150.04712.67
5.3.170.0170.04112.66
5.3.160.0340.08512.68
5.3.150.0160.04312.67
5.3.140.0160.04312.66
5.3.130.0120.04712.66
5.3.120.0170.04712.66
5.3.110.0160.04912.66
5.3.100.0460.10612.12
5.3.90.0170.04312.08
5.3.80.0160.04512.08
5.3.70.0190.04212.07
5.3.60.0200.03912.06
5.3.50.0130.04512.00
5.3.40.0300.09012.00
5.3.30.0120.04411.95
5.3.20.0190.03911.73
5.3.10.0180.04011.69
5.3.00.0150.04311.67

preferences:
141.03 ms | 1394 KiB | 7 Q