3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo['bar']['baz'] = 'foo'; foreach($foo['bar'] ?: [] as &$val) { $val = 'FOO'; } var_dump($foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/lgucN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $2      !0, 'bar'
          1        ASSIGN_DIM                                               $2, 'baz'
          2        OP_DATA                                                  'foo'
    4     3        FETCH_DIM_R                                      ~4      !0, 'bar'
          4        JMP_SET                                          ~5      ~4, ->6
          5        QM_ASSIGN                                        ~5      <array>
          6      > FE_RESET_RW                                      $6      ~5, ->10
          7    > > FE_FETCH_RW                                              $6, !1, ->10
    5     8    >   ASSIGN                                                   !1, 'FOO'
    4     9      > JMP                                                      ->7
         10    >   FE_FREE                                                  $6
    8    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1394 KiB | 15 Q