3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('blah' => 'bla'); $color = isset($options['color']) ?: ''; echo $color . '<br>'; $color2 = isset($options['color']) ? $options['color'] : ''; echo $color2 . '<br>'; $options['color'] = 'blue'; $color = isset($options['color']) ?: ''; echo $color . '<br>'; $color2 = isset($options['color']) ? $options['color'] : ''; echo $color2 . '<br>'; echo 'done';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
Branch analysis from position: 29
filename:       /in/jiRIl
function name:  (null)
number of ops:  35
compiled vars:  !0 = $options, !1 = $color, !2 = $color2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !0, 'color'
          2        JMP_SET                                          ~5      ~4, ->4
          3        QM_ASSIGN                                        ~5      ''
          4        ASSIGN                                                   !1, ~5
    6     5        CONCAT                                           ~7      !1, '%3Cbr%3E'
          6        ECHO                                                     ~7
    8     7        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'color'
          8      > JMPZ                                                     ~8, ->12
          9    >   FETCH_DIM_R                                      ~9      !0, 'color'
         10        QM_ASSIGN                                        ~10     ~9
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~10     ''
         13    >   ASSIGN                                                   !2, ~10
    9    14        CONCAT                                           ~12     !2, '%3Cbr%3E'
         15        ECHO                                                     ~12
   11    16        ASSIGN_DIM                                               !0, 'color'
         17        OP_DATA                                                  'blue'
   13    18        ISSET_ISEMPTY_DIM_OBJ                         0  ~14     !0, 'color'
         19        JMP_SET                                          ~15     ~14, ->21
         20        QM_ASSIGN                                        ~15     ''
         21        ASSIGN                                                   !1, ~15
   14    22        CONCAT                                           ~17     !1, '%3Cbr%3E'
         23        ECHO                                                     ~17
   16    24        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'color'
         25      > JMPZ                                                     ~18, ->29
         26    >   FETCH_DIM_R                                      ~19     !0, 'color'
         27        QM_ASSIGN                                        ~20     ~19
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~20     ''
         30    >   ASSIGN                                                   !2, ~20
   17    31        CONCAT                                           ~22     !2, '%3Cbr%3E'
         32        ECHO                                                     ~22
   19    33        ECHO                                                     'done'
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.45 ms | 1395 KiB | 13 Q