1--TEST-- 2JIT Trampoline 002: 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} 25class D extends A { 26 function foo() { 27 echo "D"; 28 } 29} 30$b = new B; 31$c = new C; 32$d = new D; 33$a = [$b, $b, $b, $c, $c, $c, $d, $d, $d, $c, $c, $c]; 34foreach ($a as $x) { 35 $x->foo(); 36} 37echo "\n"; 38?> 39--EXPECT-- 40BBBCCCDDDCCC 41