3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES )) ; ?>
based on T1HJf
Output for 5.4.0 - 7.2.0
array(5) { ["""]=> string(6) "&quot;" ["&"]=> string(5) "&amp;" ["'"]=> string(6) "&#039;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" }
Output for 4.3.0 - 4.3.1, 5.3.4 - 5.3.29
array(5) { ["&"]=> string(5) "&amp;" ["""]=> string(6) "&quot;" ["'"]=> string(6) "&#039;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" }
Output for 4.3.4 - 5.3.3
array(5) { ["""]=> string(6) "&quot;" ["'"]=> string(5) "&#39;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" ["&"]=> string(5) "&amp;" }
Output for 4.3.2 - 4.3.3
array(5) { ["&"]=> string(5) "&amp;" ["""]=> string(6) "&quot;" ["'"]=> string(5) "&#39;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" }