3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = json_decode('{"foo": "bar"}', true); $baz = isset($array['baz']) ? $array['baz'] : null; var_dump($baz);

preferences:
55.09 ms | 405 KiB | 5 Q