3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace xyz; 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/MnLMJ
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'xyz%5Cbar'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function xyz%5Cfoo

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

End of function xyz%5Cbar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.62 ms | 1397 KiB | 16 Q