xref: /PHP-8.4/ext/opcache/tests/jit/mod_005.phpt (revision c16ad918)
1--TEST--
2JIT MOD: 005
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.protect_memory=1
8--FILE--
9<?php
10class Test{
11    public $prop = 32;
12}
13
14function test2($test) {
15    $test->prop %= 3;
16	return $test;
17}
18
19var_dump(test2(new Test));
20?>
21--EXPECT--
22object(Test)#1 (1) {
23  ["prop"]=>
24  int(2)
25}
26