xref: /PHP-8.0/tests/lang/011.phpt (revision f8d79582)
1--TEST--
2Testing nested functions
3--FILE--
4<?php
5function F()
6{
7    $a = "Hello ";
8    return($a);
9}
10
11function G()
12{
13  static $myvar = 4;
14
15  echo "$myvar ";
16  echo F();
17  echo "$myvar";
18}
19
20G();
21?>
22--EXPECT--
234 Hello 4
24