3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump("\x{}", "\xZZ", "\xg", "\u", "\u9999", "\u{9999}");
based on h9SES
Output for 7.0.0 - 7.2.0
string(4) "\x{}" string(4) "\xZZ" string(3) "\xg" string(2) "\u" string(6) "\u9999" string(3) "香"
Output for 5.3.18 - 5.6.28
string(4) "\x{}" string(4) "\xZZ" string(3) "\xg" string(2) "\u" string(6) "\u9999" string(8) "\u{9999}"