1--TEST-- 2Testing operations with undefined variable 3--FILE-- 4<?php 5 6var_dump($a[1]); 7var_dump($a[$c]); 8var_dump($a + 1); 9var_dump($a + $b); 10var_dump($a++); 11var_dump(++$b); 12var_dump($a->$b); 13var_dump($a->$b); 14var_dump($a->$b->{$c[1]}); 15 16?> 17--EXPECTF-- 18Notice: Undefined variable: a in %s on line %d 19 20Notice: Trying to access array offset on value of type null in %s on line %d 21NULL 22 23Notice: Undefined variable: a in %s on line %d 24 25Notice: Undefined variable: c in %s on line %d 26 27Notice: Trying to access array offset on value of type null in %s on line %d 28NULL 29 30Notice: Undefined variable: a in %s on line %d 31int(1) 32 33Notice: Undefined variable: a in %s on line %d 34 35Notice: Undefined variable: b in %s on line %d 36int(0) 37 38Notice: Undefined variable: a in %s on line %d 39NULL 40 41Notice: Undefined variable: b in %s on line %d 42int(1) 43 44Notice: Trying to get property '1' of non-object in %s on line %d 45NULL 46 47Notice: Trying to get property '1' of non-object in %s on line %d 48NULL 49 50Notice: Undefined variable: c in %s on line %d 51 52Notice: Trying to access array offset on value of type null in %s on line %d 53 54Notice: Trying to get property '1' of non-object in %s on line %d 55 56Notice: Trying to get property '' of non-object in %s on line %d 57NULL 58