3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = array('C:\Windows/F"o"\'o', '€ 55.-', "new \\n line \x01"); var_dump(json_encode($d)); var_dump($d); var_dump(json_encode($d, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
based on F07W0
Output for 5.5.0 - 7.2.0
string(61) "["C:\\Windows\/F\"o\"'o","\u20ac 55.-","new \\n line \u0001"]" array(3) { [0]=> string(17) "C:\Windows/F"o"'o" [1]=> string(8) "€ 55.-" [2]=> string(13) "new \n line " } string(57) "["C:\\Windows/F\"o\"'o","€ 55.-","new \\n line \u0001"]"