3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES | ENT_HTML5, "ISO-8859-1")); ?>
based on ZUWAT
Output for 5.4.12 - 7.1.0
array(130) { [" "]=> string(5) "&Tab;" [" "]=> string(9) "&NewLine;" ["!"]=> string(6) "&excl;" ["#"]=> string(5) "&num;" ["$"]=> string(8) "&dollar;" ["%"]=> string(8) "&percnt;" ["&"]=> string(5) "&amp;" ["("]=> string(6) "&lpar;" [")"]=> string(6) "&rpar;" ["*"]=> string(5) "&ast;" ["+"]=> string(6) "&plus;" [","]=> string(7) "&comma;" ["."]=> string(8) "&period;" ["/"]=> string(5) "&sol;" [":"]=> string(7) "&colon;" [";"]=> string(6) "&semi;" ["<"]=> string(4) "&lt;" ["<�"]=> string(5) "&nvlt" ["="]=> string(8) "&equals;" ["=�"]=> string(4) "&bne" [">"]=> string(4) "&gt;" [">�"]=> string(5) "&nvgt" ["?"]=> string(7) "&quest;" ["@"]=> string(8) "&commat;" ["["]=> string(8) "&lbrack;" ["\"]=> string(6) "&bsol;" ["]"]=> string(6) "&rsqb;" ["^"]=> string(5) "&Hat;" ["_"]=> string(8) "&lowbar;" ["`"]=> string(7) "&grave;" ["fj"]=> string(6) "&fjlig" ["{"]=> string(8) "&lbrace;" ["|"]=> string(6) "&vert;" ["}"]=> string(6) "&rcub;" ["�"]=> string(6) "&nbsp;" ["�"]=> string(7) "&iexcl;" ["�"]=> string(6) "&cent;" ["�"]=> string(7) "&pound;" ["�"]=> string(8) "&curren;" ["�"]=> string(5) "&yen;" ["�"]=> string(8) "&brvbar;" ["�"]=> string(6) "&sect;" ["�"]=> string(11) "&DoubleDot;" ["�"]=> string(6) "&copy;" ["�"]=> string(6) "&ordf;" ["�"]=> string(7) "&laquo;" ["�"]=> string(5) "&not;" ["�"]=> string(5) "&shy;" ["�"]=> string(5) "&reg;" ["�"]=> string(6) "&macr;" ["�"]=> string(5) "&deg;" ["�"]=> string(8) "&plusmn;" ["�"]=> string(6) "&sup2;" ["�"]=> string(6) "&sup3;" ["�"]=> string(18) "&DiacriticalAcute;" ["�"]=> string(7) "&micro;" ["�"]=> string(6) "&para;" ["�"]=> string(11) "&CenterDot;" ["�"]=> string(9) "&Cedilla;" ["�"]=> string(6) "&sup1;" ["�"]=> string(6) "&ordm;" ["�"]=> string(7) "&raquo;" ["�"]=> string(8) "&frac14;" ["�"]=> string(6) "&half;" ["�"]=> string(8) "&frac34;" ["�"]=> string(8) "&iquest;" ["�"]=> string(8) "&Agrave;" ["�"]=> string(8) "&Aacute;" ["�"]=> string(7) "&Acirc;" ["�"]=> string(8) "&Atilde;" ["�"]=> string(6) "&Auml;" ["�"]=> string(7) "&Aring;" ["�"]=> string(7) "&AElig;" ["�"]=> string(8) "&Ccedil;" ["�"]=> string(8) "&Egrave;" ["�"]=> string(8) "&Eacute;" ["�"]=> string(7) "&Ecirc;" ["�"]=> string(6) "&Euml;" ["�"]=> string(8) "&Igrave;" ["�"]=> string(8) "&Iacute;" ["�"]=> string(7) "&Icirc;" ["�"]=> string(6) "&Iuml;" ["�"]=> string(5) "&ETH;" ["�"]=> string(8) "&Ntilde;" ["�"]=> string(8) "&Ograve;" ["�"]=> string(8) "&Oacute;" ["�"]=> string(7) "&Ocirc;" ["�"]=> string(8) "&Otilde;" ["�"]=> string(6) "&Ouml;" ["�"]=> string(7) "&times;" ["�"]=> string(8) "&Oslash;" ["�"]=> string(8) "&Ugrave;" ["�"]=> string(8) "&Uacute;" ["�"]=> string(7) "&Ucirc;" ["�"]=> string(6) "&Uuml;" ["�"]=> string(8) "&Yacute;" ["�"]=> string(7) "&THORN;" ["�"]=> string(7) "&szlig;" ["�"]=> string(8) "&agrave;" ["�"]=> string(8) "&aacute;" ["�"]=> string(7) "&acirc;" ["�"]=> string(8) "&atilde;" ["�"]=> string(6) "&auml;" ["�"]=> string(7) "&aring;" ["�"]=> string(7) "&aelig;" ["�"]=> string(8) "&ccedil;" ["�"]=> string(8) "&egrave;" ["�"]=> string(8) "&eacute;" ["�"]=> string(7) "&ecirc;" ["�"]=> string(6) "&euml;" ["�"]=> string(8) "&igrave;" ["�"]=> string(8) "&iacute;" ["�"]=> string(7) "&icirc;" ["�"]=> string(6) "&iuml;" ["�"]=> string(5) "&eth;" ["�"]=> string(8) "&ntilde;" ["�"]=> string(8) "&ograve;" ["�"]=> string(8) "&oacute;" ["�"]=> string(7) "&ocirc;" ["�"]=> string(8) "&otilde;" ["�"]=> string(6) "&ouml;" ["�"]=> string(8) "&divide;" ["�"]=> string(8) "&oslash;" ["�"]=> string(8) "&ugrave;" ["�"]=> string(8) "&uacute;" ["�"]=> string(7) "&ucirc;" ["�"]=> string(6) "&uuml;" ["�"]=> string(8) "&yacute;" ["�"]=> string(7) "&thorn;" ["�"]=> string(6) "&yuml;" }
Output for 5.4.0 - 5.4.11
array(23) { [" "]=> string(5) "&Tab;" [" "]=> string(9) "&NewLine;" ["!"]=> string(6) "&excl;" ["#"]=> string(5) "&num;" ["$"]=> string(8) "&dollar;" ["%"]=> string(8) "&percnt;" ["&"]=> string(5) "&amp;" ["("]=> string(6) "&lpar;" [")"]=> string(6) "&rpar;" ["*"]=> string(5) "&ast;" ["+"]=> string(6) "&plus;" [","]=> string(7) "&comma;" ["."]=> string(8) "&period;" ["/"]=> string(5) "&sol;" [":"]=> string(7) "&colon;" [";"]=> string(6) "&semi;" ["<"]=> string(4) "&lt;" ["<�"]=> string(5) "&nvlt" ["="]=> string(8) "&equals;" ["=�"]=> string(4) "&bne" [">"]=> string(4) "&gt;" [">�"]=> string(5) "&nvgt" ["?"]=> string(7) "&quest;" }
Output for 5.3.4 - 5.3.29
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/mHgDi on line 2 array(99) { ["�"]=> string(6) "&nbsp;" ["�"]=> string(7) "&iexcl;" ["�"]=> string(6) "&cent;" ["�"]=> string(7) "&pound;" ["�"]=> string(8) "&curren;" ["�"]=> string(5) "&yen;" ["�"]=> string(8) "&brvbar;" ["�"]=> string(6) "&sect;" ["�"]=> string(5) "&uml;" ["�"]=> string(6) "&copy;" ["�"]=> string(6) "&ordf;" ["�"]=> string(7) "&laquo;" ["�"]=> string(5) "&not;" ["�"]=> string(5) "&shy;" ["�"]=> string(5) "&reg;" ["�"]=> string(6) "&macr;" ["�"]=> string(5) "&deg;" ["�"]=> string(8) "&plusmn;" ["�"]=> string(6) "&sup2;" ["�"]=> string(6) "&sup3;" ["�"]=> string(7) "&acute;" ["�"]=> string(7) "&micro;" ["�"]=> string(6) "&para;" ["�"]=> string(8) "&middot;" ["�"]=> string(7) "&cedil;" ["�"]=> string(6) "&sup1;" ["�"]=> string(6) "&ordm;" ["�"]=> string(7) "&raquo;" ["�"]=> string(8) "&frac14;" ["�"]=> string(8) "&frac12;" ["�"]=> string(8) "&frac34;" ["�"]=> string(8) "&iquest;" ["�"]=> string(8) "&Agrave;" ["�"]=> string(8) "&Aacute;" ["�"]=> string(7) "&Acirc;" ["�"]=> string(8) "&Atilde;" ["�"]=> string(6) "&Auml;" ["�"]=> string(7) "&Aring;" ["�"]=> string(7) "&AElig;" ["�"]=> string(8) "&Ccedil;" ["�"]=> string(8) "&Egrave;" ["�"]=> string(8) "&Eacute;" ["�"]=> string(7) "&Ecirc;" ["�"]=> string(6) "&Euml;" ["�"]=> string(8) "&Igrave;" ["�"]=> string(8) "&Iacute;" ["�"]=> string(7) "&Icirc;" ["�"]=> string(6) "&Iuml;" ["�"]=> string(5) "&ETH;" ["�"]=> string(8) "&Ntilde;" ["�"]=> string(8) "&Ograve;" ["�"]=> string(8) "&Oacute;" ["�"]=> string(7) "&Ocirc;" ["�"]=> string(8) "&Otilde;" ["�"]=> string(6) "&Ouml;" ["�"]=> string(7) "&times;" ["�"]=> string(8) "&Oslash;" ["�"]=> string(8) "&Ugrave;" ["�"]=> string(8) "&Uacute;" ["�"]=> string(7) "&Ucirc;" ["�"]=> string(6) "&Uuml;" ["�"]=> string(8) "&Yacute;" ["�"]=> string(7) "&THORN;" ["�"]=> string(7) "&szlig;" ["�"]=> string(8) "&agrave;" ["�"]=> string(8) "&aacute;" ["�"]=> string(7) "&acirc;" ["�"]=> string(8) "&atilde;" ["�"]=> string(6) "&auml;" ["�"]=> string(7) "&aring;" ["�"]=> string(7) "&aelig;" ["�"]=> string(8) "&ccedil;" ["�"]=> string(8) "&egrave;" ["�"]=> string(8) "&eacute;" ["�"]=> string(7) "&ecirc;" ["�"]=> string(6) "&euml;" ["�"]=> string(8) "&igrave;" ["�"]=> string(8) "&iacute;" ["�"]=> string(7) "&icirc;" ["�"]=> string(6) "&iuml;" ["�"]=> string(5) "&eth;" ["�"]=> string(8) "&ntilde;" ["�"]=> string(8) "&ograve;" ["�"]=> string(8) "&oacute;" ["�"]=> string(7) "&ocirc;" ["�"]=> string(8) "&otilde;" ["�"]=> string(6) "&ouml;" ["�"]=> string(8) "&divide;" ["�"]=> string(8) "&oslash;" ["�"]=> string(8) "&ugrave;" ["�"]=> string(8) "&uacute;" ["�"]=> string(7) "&ucirc;" ["�"]=> string(6) "&uuml;" ["�"]=> string(8) "&yacute;" ["�"]=> string(7) "&thorn;" ["�"]=> string(6) "&yuml;" ["&"]=> string(5) "&amp;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" }
Output for 4.3.0 - 5.3.3
Notice: Use of undefined constant ENT_HTML5 - assumed 'ENT_HTML5' in /in/mHgDi on line 2 Warning: get_html_translation_table() expects at most 2 parameters, 3 given in /in/mHgDi on line 2 NULL