3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function func(&$val) { return $val ?: 123; } $a = array(); func($a['x']['x']['x']); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ANAuM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'func'
          2        FETCH_DIM_W                                      $2      !0, 'x'
          3        FETCH_DIM_W                                      $3      $2, 'x'
          4        FETCH_DIM_W                                      $4      $3, 'x'
          5        SEND_REF                                                 $4
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ANAuM
function name:  func
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        JMP_SET                                          ~1      !0, ->3
          2        QM_ASSIGN                                        ~1      123
          3      > RETURN                                                   ~1
    6     4*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.58 ms | 1397 KiB | 16 Q