3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(); $x["msg5"] = "yyy &#3612;&#3626;&#3617;&#3616;&#3634;&#3625;&#3634;&#3652;&#3607;&#3618; zzz"; $x["sql"] = iconv("TIS-620", "UTF-8", "SELECT * FROM hell WHERE stage=2"); echo "<pre>", json_encode($x), "</pre>";
Output for 5.2.0 - 5.5.34, 5.6.28, 7.0.14 - 7.1.0
<pre>{"msg5":"yyy &#3612;&#3626;&#3617;&#3616;&#3634;&#3625;&#3634;&#3652;&#3607;&#3618; zzz","sql":"SELECT * FROM hell WHERE stage=2"}</pre>
Output for 7.0.0 - 7.0.11
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/2iKAD:4 Stack trace: #0 {main} thrown in /in/2iKAD on line 4
Process exited with code 255.
Output for 5.5.35 - 5.6.26
Fatal error: Call to undefined function iconv() in /in/2iKAD on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
<pre> Fatal error: Call to undefined function json_encode() in /in/2iKAD on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: iconv() in /in/2iKAD on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: iconv() in /in/2iKAD on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: iconv() in /in/2iKAD on line 4