3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler() { } set_error_handler('handler'); function func() { $var = 'test'; $array = array(); $value = $array[$var]; $realVar = $var; substr($var, -1); $anotherValue = 'a'; $value['a']; } $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/Ruiu2
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                                                 
   20     3        NEW                                              $2      'ArrayObject'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   22     7        UNSET_DIM                                                !0, 0
   23     8        FETCH_DIM_UNSET                                  $5      !0, 0
          9        UNSET_DIM                                                $5, 0
   24    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/Ruiu2
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/Ruiu2
function name:  func
number of ops:  13
compiled vars:  !0 = $var, !1 = $array, !2 = $value, !3 = $realVar, !4 = $anotherValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'test'
   12     1        ASSIGN                                                   !1, <array>
   13     2        FETCH_DIM_R                                      ~7      !1, !0
          3        ASSIGN                                                   !2, ~7
   14     4        ASSIGN                                                   !3, !0
   15     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                                 
   16     9        ASSIGN                                                   !4, 'a'
   17    10        FETCH_DIM_R                                      ~12     !2, 'a'
         11        FREE                                                     ~12
   18    12      > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1399 KiB | 18 Q