3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpMhG
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'getprofession'
          1        SEND_VAL                                                 '0001'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4        ECHO                                                     '%0A'
   20     5        INIT_FCALL                                               'getprofession'
          6        SEND_VAL                                                 '0002'
          7        DO_FCALL                                      0  $1      
          8        ECHO                                                     $1
          9        ECHO                                                     '%0A'
   21    10        INIT_FCALL                                               'getprofession'
         11        SEND_VAL                                                 '0003'
         12        DO_FCALL                                      0  $2      
         13        ECHO                                                     $2
         14        ECHO                                                     '%0A'
   22    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'getprofession'
         17        SEND_VAL                                                 '0004'
         18        DO_FCALL                                      0  $3      
         19        SEND_VAR                                                 $3
         20        DO_ICALL                                                 
   23    21        INIT_FCALL                                               'getprofession'
         22        SEND_VAL                                                 'null'
         23        DO_FCALL                                      0  $5      
         24        ECHO                                                     $5
         25        ECHO                                                     '%0A'
   24    26        INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'getprofession'
         28        SEND_VAL                                                 '246'
         29        DO_FCALL                                      0  $6      
         30        SEND_VAR                                                 $6
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function getprofession:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
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
Branch analysis from position: 6
filename:       /in/kpMhG
function name:  getProfession
number of ops:  14
compiled vars:  !0 = $key, !1 = $professions, !2 = $retval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
   14     2        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      !1, !0
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    >   ARRAY_KEY_EXISTS                                 ~5      !0, !1
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->10
          7    >   FETCH_DIM_R                                      ~6      !1, !0
          8        QM_ASSIGN                                        ~7      ~6
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~7      <false>
         11    >   ASSIGN                                                   !2, ~7
   15    12      > RETURN                                                   !2
   17    13*     > RETURN                                                   null

End of function getprofession

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.02 ms | 974 KiB | 20 Q