3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $encoded = substr(json_encode("\r\n\f\thoge\0\x0f", JSON_UNESCAPED_UNICODE), 1, -1); echo $encoded;
based on YlZYs
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.1
\r\n\f\thoge\u0000\u000f