- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '<', expecting end of file in /in/Y00XU on line 3
Process exited with code 255.
<?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.'</textarea'>;
}
show(htmlentities('test'));