3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace blah; function foo($bar) { throw new \Exception(); } function bar() { call_user_func('foo', 'baz'); } bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N26ac
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'blah%5Cbar'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function blah%5Cfoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/N26ac
function name:  blah\foo
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        NEW                                              $1      'Exception'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
          4*     > RETURN                                                   null

End of function blah%5Cfoo

Function blah%5Cbar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N26ac
function name:  blah\bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'blah%5Ccall_user_func'
          1        SEND_VAL_EX                                              'foo'
          2        SEND_VAL_EX                                              'baz'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function blah%5Cbar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.18 ms | 1397 KiB | 16 Q