3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc($ar){++$ar['b'];} $ar['b'] = 1; inc($ar); echo $ar['b'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZaWu
function name:  (null)
number of ops:  8
compiled vars:  !0 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'b'
          1        OP_DATA                                                  1
    3     2        INIT_FCALL                                               'inc'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
    4     5        FETCH_DIM_R                                      ~3      !0, 'b'
          6        ECHO                                                     ~3
          7      > RETURN                                                   1

Function inc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZaWu
function name:  inc
number of ops:  4
compiled vars:  !0 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   RECV                                             !0      
          1        FETCH_DIM_RW                                     $1      !0, 'b'
          2        PRE_INC                                                  $1
          3      > RETURN                                                   null

End of function inc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1396 KiB | 14 Q