1--TEST-- 2Test basic info functionality 3--INI-- 4auto_globals_jit=0 5--PHPDBG-- 6i classes 7i funcs 8b foo 9r 10i v 11i g 12i b 13i d 14i F 15i e 16i l 17c 18i v 19q 20--EXPECTF-- 21[Successful compilation of %s] 22prompt> [User Classes (1)] 23User Class Foo\Bar (2) 24|---- in %s on line 4 25prompt> [User Functions (1)] 26|-------- foo in %s on line 14 27prompt> [Breakpoint #0 added at foo] 28prompt> string(4) "test" 29[Breakpoint #0 in foo() at %s:15, hits: 1] 30>00015: var_dump(strrev($baz)); 31 00016: } 32 00017: 33prompt> [Variables in foo() (1)] 34Address Refs Type Variable 35%s %d string $baz 36string (4) "test" 37prompt> [Superglobal variables (8)] 38Address Refs Type Variable 39%s 2 array $_GET 40%s 2 array $_POST 41%s 2 array $_COOKIE 42%s 2 array $_SERVER 43%s 2 array $_ENV 44%s 1 array $_REQUEST 45%s 2 array $_FILES 46%s 1 array &$GLOBALS 47prompt> ------------------------------------------------ 48Function Breakpoints: 49#0 foo 50prompt> [User-defined constants (0)] 51prompt> [Included files: 0] 52prompt> [No error found!] 53prompt> [Literal Constants in foo() (2)] 54|-------- C0 -------> [var_dump] 55|-------- C1 -------> [strrev] 56prompt> string(4) "tset" 57[Script ended normally] 58prompt> [No active op array!] 59prompt> 60--FILE-- 61<?php 62 63namespace Foo { 64 class Bar { 65 function Foo($bar) { 66 var_dump($bar); 67 } 68 69 function baz() { } 70 } 71} 72 73namespace { 74 function foo($baz) { 75 var_dump(strrev($baz)); 76 } 77 78 (new \Foo\Bar)->Foo("test"); 79 foo("test"); 80} 81