3v4l.org

run code in 500+ PHP versions simultaneously
<?php function getOptions() { return []; } echo isset(getOptions()['endpoint']) ? getOptions()['endpoint'] : 'isset check'; echo "\n"; echo getOptions()['endpoint'] ?? 'null coalescing';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/No8Mm
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'getoptions'
          1        DO_FCALL                                          0  $0      
          2        ISSET_ISEMPTY_DIM_OBJ                             0          $0, 'endpoint'
          3      > JMPZ                                                         ~1, ->9
          4    >   INIT_FCALL                                                   'getoptions'
          5        DO_FCALL                                          0  $2      
          6        FETCH_DIM_R                                          ~3      $2, 'endpoint'
          7        QM_ASSIGN                                            ~4      ~3
          8      > JMP                                                          ->10
          9    >   QM_ASSIGN                                            ~4      'isset+check'
         10    >   ECHO                                                         ~4
    8    11        ECHO                                                         '%0A'
    9    12        INIT_FCALL                                                   'getoptions'
         13        DO_FCALL                                          0  $5      
         14        FETCH_DIM_IS                                         ~6      $5, 'endpoint'
         15        COALESCE                                             ~7      ~6
         16        QM_ASSIGN                                            ~7      'null+coalescing'
         17        ECHO                                                         ~7
         18      > RETURN                                                       1

Function getoptions:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/No8Mm
function name:  getOptions
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                       <array>
    5     1*     > RETURN                                                       null

End of function getoptions

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.32 ms | 3179 KiB | 16 Q