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/UvAjF
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_FCALL                                               'svg_icon'
          1        SEND_VAL                                                 'hamburger'
          2        SEND_VAL                                                 'Main+Menu'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   30     5        ECHO                                                     '%0A'
   31     6        INIT_FCALL                                               'svg_icon'
          7        SEND_VAL                                                 'arrow'
          8        SEND_VAL                                                 'Click+me'
          9        DO_FCALL                                      0  $1      
         10        ECHO                                                     $1
   32    11        ECHO                                                     '%0A'
   33    12        INIT_FCALL                                               'svg_icon'
         13        SEND_VAL                                                 'close'
         14        DO_FCALL                                      0  $2      
         15        ECHO                                                     $2
   34    16        ECHO                                                     '%0A'
   35    17        INIT_FCALL                                               'svg_icon'
         18        SEND_VAL                                                 'nope'
         19        DO_FCALL                                      0  $3      
         20        ECHO                                                     $3
   36    21        ECHO                                                     '%0A'
   43    22      > RETURN                                                   1

Function svg_icon:
Finding entry points
Branch analysis from position: 0
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
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 30
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/UvAjF
function name:  svg_icon
number of ops:  34
compiled vars:  !0 = $icon, !1 = $label, !2 = $config, !3 = $svg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
    6     2        BIND_STATIC                                              !2
   13     3        FETCH_DIM_IS                                     ~4      !2, !0
          4        COALESCE                                         ~5      ~4
          5        QM_ASSIGN                                        ~5      null
          6        ASSIGN                                           ~6      !3, ~5
          7        BOOL_NOT                                         ~7      ~6
          8      > JMPZ                                                     ~7, ->10
   14     9    > > RETURN                                                   null
   18    10    >   ISSET_ISEMPTY_CV                                 ~8      !1
         11        BOOL_NOT                                         ~9      ~8
         12      > JMPZ                                                     ~9, ->30
   19    13    >   INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 '%3Csvg+'
         15        INIT_FCALL_BY_NAME                                       'esc_attr'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $10     
         18        CONCAT                                           ~11     '%3Csvg+aria-label%3D%22', $10
         19        CONCAT                                           ~12     ~11, '%22'
         20        SEND_VAL                                                 ~12
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !3, $13
   20    24        INIT_FCALL                                               'str_replace'
         25        SEND_VAL                                                 'aria-hidden%3D%22true%22'
         26        SEND_VAL                                                 ''
         27        SEND_VAR                                                 !3
         28        DO_ICALL                                         $15     
         29        ASSIGN                                                   !3, $15
   23    30    >   VERIFY_RETURN_TYPE                                       !3
         31      > RETURN                                                   !3
   25    32*       VERIFY_RETURN_TYPE                                       
         33*     > RETURN                                                   null

End of function svg_icon

Function esc_attr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UvAjF
function name:  esc_attr
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function esc_attr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.55 ms | 976 KiB | 18 Q