3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "start\n"; $x = htmlentities('a', ENT_COMPAT,'cp1251'); echo "end\n";
based on PVrgn
Output for 4.3.2 - 7.2.0
start end
Output for 4.3.0 - 4.3.1
start Warning: htmlentities() [http://www.php.net/function.htmlentities]: charset `cp1251' not supported, assuming iso-8859-1 in /in/A50BK on line 4
Process exited with code 139.