1--TEST-- 2JIT Trampoline 001: trampoline cleanup 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=1M 8opcache.jit=tracing 9--SKIPIF-- 10<?php require_once('skipif.inc'); ?> 11--FILE-- 12<?php 13class A { 14} 15class B extends A { 16 function foo() { 17 echo "B"; 18 } 19} 20class C extends A { 21 function __call($name, $argd) { 22 echo "C"; 23 } 24} 25$b = new B; 26$c = new C; 27$a = [$b, $b, $b, $c, $c, $c]; 28foreach ($a as $x) { 29 $x->foo(); 30} 31echo "\n"; 32?> 33--EXPECT-- 34BBBCCC 35