1--TEST-- 2JIT MOD: 003 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.protect_memory=1 8opcache.jit=function 9--EXTENSIONS-- 10opcache 11--FILE-- 12<?php 13class Test { 14 public $prop = 0; 15} 16function test1($test) { 17 $test[0] %= 3; 18 return $test; 19} 20function test2($test) { 21 $test->prop %= 3; 22 return $test; 23} 24var_dump(test1([0])); 25var_dump(test2(new Test)); 26?> 27--EXPECT-- 28array(1) { 29 [0]=> 30 int(0) 31} 32object(Test)#1 (1) { 33 ["prop"]=> 34 int(0) 35} 36