3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $purchaseSnapshot = ['ss' => 'rock']; var_dump($purchaseSnapshot['type'] ?: null);
Output for 7.1.2
Notice: Undefined index: type in /in/DDDTC on line 5 NULL