3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler() { } set_error_handler('handler'); function func() { $var = 1; trigger_error('error'); $realVar = $var; $anotherValue = 1; trigger_error('error'); } $items = new ArrayObject(array(1)); unset($items[0]); unset($items[0][0]); func();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vF43K
function name:  (null)
number of ops:  13
compiled vars:  !0 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'handler'
          2        DO_ICALL                                                 
   18     3        NEW                                              $2      'ArrayObject'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   20     7        UNSET_DIM                                                !0, 0
   21     8        FETCH_DIM_UNSET                                  $5      !0, 0
          9        UNSET_DIM                                                $5, 0
   22    10        INIT_FCALL                                               'func'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vF43K
function name:  handler
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function handler

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vF43K
function name:  func
number of ops:  10
compiled vars:  !0 = $var, !1 = $realVar, !2 = $anotherValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 1
   12     1        INIT_FCALL                                               'trigger_error'
          2        SEND_VAL                                                 'error'
          3        DO_ICALL                                                 
   13     4        ASSIGN                                                   !1, !0
   14     5        ASSIGN                                                   !2, 1
   15     6        INIT_FCALL                                               'trigger_error'
          7        SEND_VAL                                                 'error'
          8        DO_ICALL                                                 
   16     9      > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.66 ms | 1399 KiB | 18 Q