3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; function bar($namespace) { print "This is " . __FUNCTION__ . ", and called from namespace ". $namespace. "\n"; } namespace Another\Name; function bar() { print "Bar!"; } bar(__NAMESPACE__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aaHaY
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_NS_FCALL_BY_NAME                                    'Another%5CName%5Cbar'
          1        SEND_VAL_EX                                              'Another%5CName'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function foo%5Cbar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aaHaY
function name:  Foo\bar
number of ops:  5
compiled vars:  !0 = $namespace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        CONCAT                                           ~1      'This+is+Foo%5Cbar%2C+and+called+from+namespace+', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
    7     4      > RETURN                                                   null

End of function foo%5Cbar

Function another%5Cname%5Cbar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aaHaY
function name:  Another\Name\bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'Bar%21'
   14     1      > RETURN                                                   null

End of function another%5Cname%5Cbar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.98 ms | 1389 KiB | 14 Q