1--TEST-- 2JIT: FETCH_OBJ 002 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=1M 8--EXTENSIONS-- 9opcache 10--FILE-- 11<?php 12class A { 13 public $x = 2; 14} 15 16class B { 17 public $x = 3; 18 public function __get($name) { 19 var_dump("__get"); 20 } 21} 22 23function bar() { 24 $a = new A(); 25 var_dump($a->x); 26 var_dump($a->y); 27 $b = new B(); 28 var_dump($b->x); 29 unset($b->x); 30 $b->x; 31} 32 33bar(); 34?> 35--EXPECTF-- 36int(2) 37 38Warning: Undefined property: A::$y in %s on line %d 39NULL 40int(3) 41string(5) "__get" 42