3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test['a'] = 123; var_dump( (isset($test['a']) ? $test['a'] : isset($test['b'])) ? $test['b'] : "default" );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
Branch analysis from position: 15
filename:       /in/jZMaI
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'a'
          2        OP_DATA                                                  123
    7     3        INIT_FCALL                                               'var_dump'
    8     4        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'a'
          5      > JMPZ                                                     ~3, ->9
    9     6    >   FETCH_DIM_R                                      ~4      !0, 'a'
          7        QM_ASSIGN                                        ~5      ~4
          8      > JMP                                                      ->11
   10     9    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !0, 'b'
         10        QM_ASSIGN                                        ~5      ~6
         11    > > JMPZ                                                     ~5, ->15
   11    12    >   FETCH_DIM_R                                      ~7      !0, 'b'
         13        QM_ASSIGN                                        ~8      ~7
         14      > JMP                                                      ->16
   12    15    >   QM_ASSIGN                                        ~8      'default'
         16    >   SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
   13    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1399 KiB | 15 Q