3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ip = "127.0.0.1"; echo htmlentities($ip, ENT_QUOTES | ENT_HTML5, 'UTF-8'); ?>
based on KnKjP
Output for 5.4.0 - 7.2.0
127&period;0&period;0&period;1
Output for 4.3.2 - 5.3.29
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/v4Df1 on line 3 127.0.0.1
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/v4Df1 on line 3
Process exited with code 139.