3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $key = 12; $val = isset($array[$key]) ? $array[$key] : null; var_dump($val);

preferences:
25.1 ms | 404 KiB | 5 Q