<?php
$str = "< this is a test ยป";
$str = htmlentities($str);
echo $str;
echo "\n";
echo htmlspecialchars_decode($str);
//echo htmlspecialchars_decode($str);
&lt; this is a test »
< this is a test »
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/6SFSN on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.5
&lt; this is a test »
Fatal error: Call to undefined function htmlspecialchars_decode() in /in/6SFSN on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
&lt; this is a test »
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/6SFSN on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
&lt; this is a test »
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/6SFSN on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
&lt; this is a test »
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/6SFSN on line 7