3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stuff($photo = null) { if (! isset($photo['member'])) { return ''; } if (! isset($photo['member']['name'])) { return ''; } return $photo['member']['name']; } stuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2kFYv
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'stuff'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function stuff:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2kFYv
function name:  stuff
number of ops:  14
compiled vars:  !0 = $photo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
    6     1        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      !0, 'member'
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->5
    7     4    > > RETURN                                                   ''
   10     5    >   FETCH_DIM_IS                                     ~3      !0, 'member'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      ~3, 'name'
          7        BOOL_NOT                                         ~5      ~4
          8      > JMPZ                                                     ~5, ->10
   11     9    > > RETURN                                                   ''
   14    10    >   FETCH_DIM_R                                      ~6      !0, 'member'
         11        FETCH_DIM_R                                      ~7      ~6, 'name'
         12      > RETURN                                                   ~7
   15    13*     > RETURN                                                   null

End of function stuff

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.91 ms | 1397 KiB | 14 Q