3v4l.org

run code in 200+ PHP versions simultaneously
<?php $arr = null; echo strval($arr['foo']) ?? 'bar';
based on 44NKZ
Output for 7.4.0 - 7.4.1
Notice: Trying to access array offset on value of type null in /in/mX3Pf on line 5
Output for 7.1.26 - 7.3.13