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