3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "Ao&ucirc;t"; function htmlDecode( $subject ) { $subject = (string) $subject; do { $oldSubject = $subject; $subject = htmlspecialchars_decode($subject); } while( $subject != $oldSubject ); } var_dump($x); htmlDecode($x); var_dump($x);
Output for 5.1.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(10) "Ao&ucirc;t" string(10) "Ao&ucirc;t"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.0.5
string(10) "Ao&ucirc;t" Fatal error: Call to undefined function htmlspecialchars_decode() in /in/bgL4Y on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(10) "Ao&ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/bgL4Y on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(10) "Ao&ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/bgL4Y on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(10) "Ao&ucirc;t" Fatal error: Call to undefined function: htmlspecialchars_decode() in /in/bgL4Y on line 11