3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = DOM\HTMLDocument::createFromString('<body><h1>Test</h1></body>', LIBXML_NOERROR); echo $dom->body->innerHTML, "\n"; // Output: <h1>Test</h1> $dom->body->innerHTML = '<p>Something new</p>'; echo $dom->saveHTML(); // Output: <html><head></head><body><p>Something new</p></body></html>

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.4.20.0100.00721.58
8.4.10.0150.00718.90
8.3.150.0070.01117.29
8.3.140.0120.00616.47
8.3.130.0100.00716.55
8.3.50.0070.01116.64
8.2.260.0110.00716.37
8.2.250.0070.01116.88

preferences:
35.66 ms | 403 KiB | 5 Q