3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES )) ; ?>
based on T1HJf
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
array(5) { ["""]=> string(6) "&quot;" ["&"]=> string(5) "&amp;" ["'"]=> string(6) "&#039;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" }
Output for hhvm-3.12.0
array(5) { ["""]=> string(6) "&quot;" ["'"]=> string(6) "&#039;" ["<"]=> string(4) "&lt;" [">"]=> string(4) "&gt;" ["&"]=> string(5) "&amp;" }
Output for hhvm-3.10.0

Process exited with code 153.
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;" }