3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ "fruits" => [ "apple" => ["taste" => "sweet", "colour" => "yellow"], "banana" => ["taste" => "sour", "colour" => "green"], "cherry" => ["taste" => "sweet", "color" => "red"] ], "vegetables" => "yuck" ]; $str = json_encode($arr); $decode = json_decode($str, true,4); echo json_last_error();
Output for 7.3.0rc3
0