3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; set_error_handler(function () { throw new \Exception(); }); call_user_func(function (array $ref) {}, 'not_an_array_variable');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kG7oU
function name:  (null)
number of ops:  10
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                                  '%00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A4%240'
    6     2        SEND_VAL_EX                                              ~0
          3        DO_FCALL                                      0          
    8     4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Ccall_user_func'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A8%241'
          6        SEND_VAL_EX                                              ~2
          7        SEND_VAL_EX                                              'not_an_array_variable'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/kG7oU
function name:  Foo\{closure}
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 function %00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A4%240

Function %00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kG7oU
function name:  Foo\{closure}
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 %00foo%5C%7Bclosure%7D%2Fin%2FkG7oU%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.89 ms | 1395 KiB | 17 Q