3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function(){ var_dump(func_get_args()); }); $obj = new ArrayIterator(new stdClass); $obj->append('baz');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0911
function name:  (null)
number of ops:  14
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fq0911%3A3%240'
    5     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    6     4        NEW                                              $3      'ArrayIterator'
          5        NEW                                              $4      'stdClass'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
    7    10        INIT_METHOD_CALL                                         !0, 'append'
         11        SEND_VAL_EX                                              'baz'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fq0911%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0911
function name:  {closure}
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fq0911%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.54 ms | 1386 KiB | 17 Q