3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('blah' => 'bla'); $color = isset($options['color']) ?: ''; $color2 = isset($options['color']) ? $options['color'] : ''; $options['color'] = 'blue'; $color = isset($options['color']) ?: ''; $color2 = isset($options['color']) ? $options['color'] : ''; echo 'done';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
Branch analysis from position: 23
filename:       /in/FMNe6
function name:  (null)
number of ops:  27
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
    7     5        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'color'
          6      > JMPZ                                                     ~7, ->10
          7    >   FETCH_DIM_R                                      ~8      !0, 'color'
          8        QM_ASSIGN                                        ~9      ~8
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~9      ''
         11    >   ASSIGN                                                   !2, ~9
    9    12        ASSIGN_DIM                                               !0, 'color'
         13        OP_DATA                                                  'blue'
   11    14        ISSET_ISEMPTY_DIM_OBJ                         0  ~12     !0, 'color'
         15        JMP_SET                                          ~13     ~12, ->17
         16        QM_ASSIGN                                        ~13     ''
         17        ASSIGN                                                   !1, ~13
   13    18        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'color'
         19      > JMPZ                                                     ~15, ->23
         20    >   FETCH_DIM_R                                      ~16     !0, 'color'
         21        QM_ASSIGN                                        ~17     ~16
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~17     ''
         24    >   ASSIGN                                                   !2, ~17
   15    25        ECHO                                                     'done'
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1395 KiB | 13 Q