3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!DOCTYPE html><html><head> <noscript> <style>body { margin: 0; }</style> </noscript> <link href="/style.css" rel="stylesheet"> </head><body></body></html>'; $doc = Dom\HTMLDocument::createFromString($html, LIBXML_NOERROR); echo $doc->saveHTML(), PHP_EOL; $link = $doc->getElementsByTagName('link')->item(0); echo "Link parent: ", $link->parentNode->nodeName, PHP_EOL;

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.5.30.0210.00917.56
8.5.20.0090.00918.79
8.4.180.0160.01522.04
8.4.170.0130.00921.96
8.4.90.0200.01019.95
8.3.300.0100.00620.20
8.3.180.0110.00718.55
8.3.50.0110.00916.72

preferences:
35.08 ms | 475 KiB | 5 Q