1--TEST-- 2Relative print commands 3--INI-- 4opcache.enable_cli=0 5--PHPDBG-- 6b foo 7r 8p 9p o 10q 11--EXPECTF-- 12[Successful compilation of %s] 13prompt> [Breakpoint #0 added at foo] 14prompt> string(4) "test" 15[Breakpoint #0 in foo() at %s:15, hits: 1] 16>00015: var_dump(strrev($baz)); 17 00016: } 18 00017: 19prompt> [Stack in foo() (8 ops)] 20 21foo: 22 ; (lines=8, args=1, vars=1, tmps=2) 23 ; %s:14-16 24L0014 0000 CV0($baz) = RECV 1 25L0015 0001 INIT_FCALL %d %d string("var_dump") 26L0015 0002 INIT_FCALL %d %d string("strrev") 27L0015 0003 SEND_VAR CV0($baz) 1 28L0015 0004 V1 = DO_ICALL 29L0015 0005 SEND_VAR V1 1 30L0015 0006 DO_ICALL 31L0016 0007 RETURN null 32prompt> L0015 0001 INIT_FCALL %d %d string("var_dump") 33prompt> 34--FILE-- 35<?php 36 37namespace Foo { 38 class Bar { 39 function Foo($bar) { 40 var_dump($bar); 41 } 42 43 function baz() { } 44 } 45} 46 47namespace { 48 function foo($baz) { 49 var_dump(strrev($baz)); 50 } 51 52 (new \Foo\Bar)->Foo("test"); 53 foo("test"); 54} 55