1--TEST--
2Test nullsafe on undefined variable
3--FILE--
4<?php
5
6var_dump($foo?->bar);
7var_dump($foo?->bar());
8var_dump($foo);
9
10?>
11--EXPECTF--
12Warning: Undefined variable $foo in %s.php on line 3
13NULL
14
15Warning: Undefined variable $foo in %s.php on line 4
16NULL
17
18Warning: Undefined variable $foo in %s.php on line 5
19NULL
20