038.phpt 180 B

123456789101112
  1. --TEST--
  2. Test nullsafe operator in nested delayed dims 2
  3. --FILE--
  4. <?php
  5. $foo = (object) ['bar' => 0];
  6. $array = [[null]];
  7. var_dump($array[0][$foo->bar]?->baz);
  8. ?>
  9. --EXPECT--
  10. NULL