3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function htmlkarakter($string) { $string = str_replace(array("&lt;", "&gt;", '&amp;', '&#039;', '&quot;','&lt;', '&gt;'), array("<", ">",'and','\'','"','<','>'), htmlspecialchars_decode($string, ENT_NOQUOTES)); return $string; } $kueri = "&lt;, &gt;, &amp;, &#039;,&quot;,&lt;, &gt;"; echo htmlkarakter($kueri);
Output for 5.1.0 - 7.1.0
<, >, &, ',",<, >
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function htmlspecialchars_decode() in /in/9I37T on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/9I37T on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/9I37T on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/9I37T on line 5