3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $someJson = '{"":""}'; $myObject = json_decode($someJson); $newJson = json_encode($myObject); var_dump($someJson, $newJson, $someJson === $newJson);
based on vcgVY
Output for 7.1.0 - 7.2.0
string(7) "{"":""}" string(7) "{"":""}" bool(true)
Output for 5.5.0 - 7.0.20
string(7) "{"":""}" string(14) "{"_empty_":""}" bool(false)