3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ar['key'] = "name"; $array[] = json_encode($ar); $json = json_encode($array); echo $json;
based on sfaNu
Output for 5.5.0 - 7.2.6
["{\"key\":\"name\"}"]