Updating submodules
[hiphop-php.git] / hphp / test / slow / inline-stack.php
blob47050a2e4dceda601bd0ecf448af43ecef8c696f
1 <?hh
3 function pt($f) {
4 $trace = implode(
5 ', ',
6 array_map($x ==> $x['function'].':'.($x['line'] ?? '???'), debug_backtrace())
7 );
8 echo "$f: $trace\n";
11 <<__ALWAYS_INLINE>>
12 function red() {
13 pt(__FUNCTION__);
16 <<__ALWAYS_INLINE>>
17 function green() {
18 pt(__FUNCTION__);
19 red();
22 <<__ALWAYS_INLINE>>
23 function blue() {
24 pt(__FUNCTION__);
25 green();
28 function main() {
29 blue();
31 <<__EntryPoint>> function main_entry(): void {
32 for ($i = 0; $i < 10; $i++) main();