3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo; set_error_handler(function () { throw new \Exception(); }); function func(array &$ref){} call_user_func('func', 'not_an_array_variable');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e3h8C
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_NS_FCALL_BY_NAME                                        'Foo%5Cset_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    6     2        SEND_VAL_EX                                                  ~0
    4     3        DO_FCALL                                          0          
   10     4        INIT_NS_FCALL_BY_NAME                                        'Foo%5Ccall_user_func'
          5        SEND_VAL_EX                                                  'func'
          6        SEND_VAL_EX                                                  'not_an_array_variable'
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/e3h8C
function name:  {closure:/in/e3h8C:4}
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $0      'Exception'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $0
    6     3*     > RETURN                                                       null

End of Dynamic Function 0

Function foo%5Cfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e3h8C
function name:  Foo\func
number of ops:  2
compiled vars:  !0 = $ref
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function foo%5Cfunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.03 ms | 2091 KiB | 10 Q