3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php function hexentities($str) { $return = ''; for($i = 0; $i < strlen($str); $i++) { $return .= '&#x'.bin2hex(substr($str, $i, 1)).';'; } return $return; } function show($str) { echo '<textarea rows=10 coln=25>'.$str.' } show(htmlentities('test'));
Output for 5.5.38
Parse error: syntax error, unexpected '<' in /in/Fv2qJ on line 3
Process exited with code 255.