3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "Ao&ucirc;t"; $x = htmlspecialchars($x); function htmlDecode( $subject ) { $subject = (string) $subject; do { $oldSubject = $subject; $subject = htmlspecialchars_decode($subject); } while( $subject != $oldSubject ); } $x = htmlspecialchars($x); var_dump($x); htmlDecode($x); var_dump($x);
Output for 5.1.0 - 7.1.0
string(18) "Ao&amp;amp;ucirc;t" string(18) "Ao&amp;amp;ucirc;t"
Output for 5.0.0 - 5.0.5
string(18) "Ao&amp;amp;ucirc;t" Fatal error: Call to undefined function htmlspecialchars_decode() in /in/X7Fh8 on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(18) "Ao&amp;amp;ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/X7Fh8 on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(18) "Ao&amp;amp;ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/X7Fh8 on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(18) "Ao&amp;amp;ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/X7Fh8 on line 12