xref: /PHP-7.3/tests/lang/011.phpt (revision 782352c5)
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