3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(\Dom\HTMLDocument::createFromString('<!DOCTYPE html> <html> <body>abc<br>def</body></html>', options: \Dom\HTML_NO_DEFAULT_NS)->saveHtml());

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.0140.00317.91
8.5.20.0060.01020.23
8.5.10.0170.00816.93
8.5.00.0130.00819.95
8.4.180.0170.00520.07
8.4.170.0120.00924.04
8.4.160.0120.01023.96
8.4.150.0080.00617.05
8.4.140.0160.01117.49
8.4.130.0130.00718.05
8.4.120.0120.01120.67
8.4.110.0090.01222.74
8.4.100.0150.00518.02
8.4.90.0110.00917.98
8.4.80.0100.01018.14
8.4.70.0140.00617.80
8.4.60.0130.00917.74
8.4.50.0090.01118.98
8.4.40.0030.00817.87
8.4.30.0070.01418.02
8.4.20.0160.00317.75
8.3.300.0100.00920.69
8.3.290.0140.00620.80
8.3.280.0090.01018.29
8.3.270.0200.00516.38
8.3.260.0090.00916.41
8.3.250.0120.00418.75
8.3.240.0090.01216.74
8.3.230.0110.00816.63
8.3.220.0110.00817.08
8.3.210.0100.00916.41
8.3.200.0110.00516.50
8.3.190.0110.00718.30
8.3.180.0110.00918.97
8.3.170.0140.00416.98
8.3.160.0140.00416.59
8.3.150.0060.01216.44
8.3.50.0070.01116.41
8.2.300.0110.00918.14
8.2.290.0100.00820.36
8.2.280.0090.00916.75
8.2.270.0140.00316.67
8.1.340.0120.00817.70
8.1.320.0130.00715.94

preferences:
48.4 ms | 668 KiB | 5 Q