3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = '"\ud834"'; $res = json_decode($test, true); if (json_last_error() != JSON_ERROR_NONE) { die(json_last_error_msg()); } var_dump($res);
based on UbgJs
Output for 7.0.0 - 7.2.0
Single unpaired UTF-16 surrogate in unicode escape
Output for 5.3.19 - 5.6.28
string(3) "�"