3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _display_header_text() { if ( !empty ( display_header_text() ) ) : ?> <style type="text/css" id="_display_header_text"> .mainHeader a img { display:none; } </style> <?php endif; } add_action('wp_head','_display_header_text'); ?> <?php function _is_admin_bar_showing() { if( is_admin_bar_showing() ):?> <style type="text/css" id="_is_admin_bar_showing"> .fixedHeader { top:32px; } </style> <?php endif; } add_action('wp_head','_is_admin_bar_showing');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XrWMf
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL_BY_NAME                                       'add_action'
          1        SEND_VAL_EX                                              'wp_head'
          2        SEND_VAL_EX                                              '_display_header_text'
          3        DO_FCALL                                      0          
   13     4        ECHO                                                     '%0A'
   23     5        INIT_FCALL_BY_NAME                                       'add_action'
          6        SEND_VAL_EX                                              'wp_head'
          7        SEND_VAL_EX                                              '_is_admin_bar_showing'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function _display_header_text:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/XrWMf
function name:  _display_header_text
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'display_header_text'
          1        DO_FCALL                                      0  $0      
          2        BOOL_NOT                                         ~1      $0
          3        BOOL_NOT                                         ~2      ~1
          4      > JMPZ                                                     ~2, ->6
    5     5    >   ECHO                                                     '%3Cstyle+type%3D%22text%2Fcss%22+id%3D%22_display_header_text%22%3E%0A++++.mainHeader+a+img+%7B%0A++++++++display%3Anone%3B%0A++++%7D%0A%3C%2Fstyle%3E%0A'
   10     6    > > RETURN                                                   null

End of function _display_header_text

Function _is_admin_bar_showing:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/XrWMf
function name:  _is_admin_bar_showing
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL_BY_NAME                                       'is_admin_bar_showing'
          1        DO_FCALL                                      0  $0      
          2      > JMPZ                                                     $0, ->4
   17     3    >   ECHO                                                     '%3Cstyle+type%3D%22text%2Fcss%22+id%3D%22_is_admin_bar_showing%22%3E%0A++++.fixedHeader+%7B%0A++++++++top%3A32px%3B%0A++++%7D%0A%3C%2Fstyle%3E%0A'
   22     4    > > RETURN                                                   null

End of function _is_admin_bar_showing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.91 ms | 1395 KiB | 13 Q