3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new SplFixedArray(2); $foo[0] = 'bar1'; $foo[1] = 'bar2'; var_dump(isset($foo[0]) ? $foo[0] : null); var_dump(isset($foo[1]) ? $foo[1] : null); var_dump(isset($foo[2]) ? $foo[2] : null);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
Branch analysis from position: 32
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
Branch analysis from position: 23
filename:       /in/s79uA
function name:  (null)
number of ops:  36
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplFixedArray'
          1        SEND_VAL_EX                                              2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        ASSIGN_DIM                                               !0, 0
          5        OP_DATA                                                  'bar1'
    5     6        ASSIGN_DIM                                               !0, 1
          7        OP_DATA                                                  'bar2'
    7     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 0
         10      > JMPZ                                                     ~6, ->14
         11    >   FETCH_DIM_R                                      ~7      !0, 0
         12        QM_ASSIGN                                        ~8      ~7
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~8      null
         15    >   SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
    8    17        INIT_FCALL                                               'var_dump'
         18        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 1
         19      > JMPZ                                                     ~10, ->23
         20    >   FETCH_DIM_R                                      ~11     !0, 1
         21        QM_ASSIGN                                        ~12     ~11
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~12     null
         24    >   SEND_VAL                                                 ~12
         25        DO_ICALL                                                 
    9    26        INIT_FCALL                                               'var_dump'
         27        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 2
         28      > JMPZ                                                     ~14, ->32
         29    >   FETCH_DIM_R                                      ~15     !0, 2
         30        QM_ASSIGN                                        ~16     ~15
         31      > JMP                                                      ->33
         32    >   QM_ASSIGN                                        ~16     null
         33    >   SEND_VAL                                                 ~16
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.67 ms | 1400 KiB | 15 Q