3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('["two"]')); var_dump((array)json_decode("['one':'two']")); var_dump(json_decode('')); var_dump((array)json_decode(''));
based on qnv6c
Output for 5.5.0 - 7.3.0beta1
array(1) { [0]=> string(3) "two" } array(0) { } NULL array(0) { }