3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace{ function foo(){ echo "I'm (g)root!\n"; } } namespace Baz{ foo(); foo(); foo(); foo(); if(true){ function foo(){ echo "I'm not (g)root!\n"; } } foo(); foo(); foo(); foo(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/C0ZLq
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
          1        DO_FCALL                                      0          
    9     2        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
          3        DO_FCALL                                      0          
   10     4        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
          5        DO_FCALL                                      0          
   11     6        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
          7        DO_FCALL                                      0          
   12     8      > JMPZ                                                     <true>, ->10
          9    >   DECLARE_FUNCTION                                         'baz%5Cfoo'
   13    10    >   INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
         11        DO_FCALL                                      0          
   14    12        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
         13        DO_FCALL                                      0          
   15    14        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
         15        DO_FCALL                                      0          
   16    16        INIT_NS_FCALL_BY_NAME                                    'Baz%5Cfoo'
         17        DO_FCALL                                      0          
   17    18      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0ZLq
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'I%27m+%28g%29root%21%0A'
          1      > RETURN                                                   null

End of function foo

Function %00baz%5Cfoo%2Fin%2FC0ZLq%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0ZLq
function name:  Baz\foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'I%27m+not+%28g%29root%21%0A'
          1      > RETURN                                                   null

End of function %00baz%5Cfoo%2Fin%2FC0ZLq%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.77 ms | 1403 KiB | 21 Q