xref: /PHP-8.4/tests/lang/012.phpt (revision f8d79582)
1--TEST--
2Testing stack after early function return
3--FILE--
4<?php
5function F () {
6    if(1) {
7        return("Hello");
8    }
9}
10
11$i=0;
12while ($i<2) {
13    echo F();
14    $i++;
15}
16?>
17--EXPECT--
18HelloHello
19