3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = json_decode('{"foo": "bar"}', true); $baz = isset($array['baz']) ? $array['baz'] : null; var_dump($baz);
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3O4Jp
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22foo%22%3A+%22bar%22%7D'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'baz'
          6      > JMPZ                                                     ~4, ->10
          7    >   FETCH_DIM_R                                      ~5      !0, 'baz'
          8        QM_ASSIGN                                        ~6      ~5
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~6      null
         11    >   ASSIGN                                                   !1, ~6
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.9 ms | 1440 KiB | 16 Q