3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(htmlentities('&amp;')); var_dump(htmlentities('&amp;' ENT_QUOTES, 'UTF-8', false)); var_dump(htmlspecialchars('&amp;'));

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)
7.0.20.0400.07020.24
7.0.10.0100.03720.26
7.0.00.0070.07020.20
5.6.170.0270.06320.56
5.6.160.0030.05320.54
5.6.150.0000.05018.15
5.6.140.0070.08318.22
5.6.130.0100.07718.18
5.6.120.0070.04021.00
5.6.110.0170.04721.08
5.6.100.0070.08721.11
5.6.90.0030.04721.10
5.6.80.0000.04720.37
5.5.310.0270.08020.24
5.5.300.0100.08018.00
5.5.290.0070.03718.08
5.5.280.0030.08720.77
5.5.270.0170.07720.86
5.5.260.0070.07720.89
5.5.250.0100.07720.58
5.5.240.0230.07720.11

preferences:
136.6 ms | 1394 KiB | 7 Q