3v4l.org

run code in 300+ PHP versions simultaneously
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= // Additional Functions // ============================================================================= //add hatom data function add_suf_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if (is_home() || is_singular() || is_archive() ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } // Add Google Tag Manager Code // ============================================================================= function add_google_tag_manager_code(){ ?> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-N67NBX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-N67NBX');</script> <!-- End Google Tag Manager --> <?php } add_action( 'x_before_site_begin', 'gtm_tracking_code' ); // End Add Google Tag Manager Code // =============================================================================
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hhnT
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   50     0  E >   INIT_FCALL_BY_NAME                                       'add_action'
          1        SEND_VAL_EX                                              'x_before_site_begin'
          2        SEND_VAL_EX                                              'gtm_tracking_code'
          3        DO_FCALL                                      0          
   52     4      > RETURN                                                   1

Function add_suf_hatom_data:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 29
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 21
Branch analysis from position: 17
filename:       /in/0hhnT
function name:  add_suf_hatom_data
number of ops:  31
compiled vars:  !0 = $content, !1 = $t, !2 = $author, !3 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   24     1        INIT_FCALL_BY_NAME                                       'get_the_modified_time'
          2        SEND_VAL_EX                                              'F+jS%2C+Y'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
   25     5        INIT_FCALL_BY_NAME                                       'get_the_author'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !2, $6
   26     8        INIT_FCALL_BY_NAME                                       'get_the_title'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !3, $8
   27    11        INIT_FCALL_BY_NAME                                       'is_home'
         12        DO_FCALL                                      0  $10     
         13      > JMPNZ_EX                                         ~11     $10, ->17
         14    >   INIT_FCALL_BY_NAME                                       'is_singular'
         15        DO_FCALL                                      0  $12     
         16        BOOL                                             ~11     $12
         17    > > JMPNZ_EX                                         ~11     ~11, ->21
         18    >   INIT_FCALL_BY_NAME                                       'is_archive'
         19        DO_FCALL                                      0  $13     
         20        BOOL                                             ~11     $13
         21    > > JMPZ                                                     ~11, ->29
   28    22    >   CONCAT                                           ~14     '%3Cdiv+class%3D%22hatom-extra%22+style%3D%22display%3Anone%3Bvisibility%3Ahidden%3B%22%3E%3Cspan+class%3D%22entry-title%22%3E', !3
         23        CONCAT                                           ~15     ~14, '%3C%2Fspan%3E+was+last+modified%3A+%3Cspan+class%3D%22updated%22%3E+'
         24        CONCAT                                           ~16     ~15, !1
         25        CONCAT                                           ~17     ~16, '%3C%2Fspan%3E+by+%3Cspan+class%3D%22author+vcard%22%3E%3Cspan+class%3D%22fn%22%3E'
         26        CONCAT                                           ~18     ~17, !2
         27        CONCAT                                           ~19     ~18, '%3C%2Fspan%3E%3C%2Fspan%3E%3C%2Fdiv%3E'
         28        ASSIGN_OP                                     8          !0, ~19
   30    29    > > RETURN                                                   !0
   31    30*     > RETURN                                                   null

End of function add_suf_hatom_data

Function add_google_tag_manager_code:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hhnT
function name:  add_google_tag_manager_code
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   ECHO                                                     '%0A%3C%21--+Google+Tag+Manager+--%3E%0A%3Cnoscript%3E%3Ciframe+src%3D%22%2F%2Fwww.googletagmanager.com%2Fns.html%3Fid%3DGTM-N67NBX%22%0Aheight%3D%220%22+width%3D%220%22+style%3D%22display%3Anone%3Bvisibility%3Ahidden%22%3E%3C%2Fiframe%3E%3C%2Fnoscript%3E%0A%3Cscript%3E%28function%28w%2Cd%2Cs%2Cl%2Ci%29%7Bw%5Bl%5D%3Dw%5Bl%5D%7C%7C%5B%5D%3Bw%5Bl%5D.push%28%7B%27gtm.start%27%3A%0Anew+Date%28%29.getTime%28%29%2Cevent%3A%27gtm.js%27%7D%29%3Bvar+f%3Dd.getElementsByTagName%28s%29%5B0%5D%2C%0Aj%3Dd.createElement%28s%29%2Cdl%3Dl%21%3D%27dataLayer%27%3F%27%26l%3D%27%2Bl%3A%27%27%3Bj.async%3Dtrue%3Bj.src%3D%0A%27%2F%2Fwww.googletagmanager.com%2Fgtm.js%3Fid%3D%27%2Bi%2Bdl%3Bf.parentNode.insertBefore%28j%2Cf%29%3B%0A%7D%29%28window%2Cdocument%2C%27script%27%2C%27dataLayer%27%2C%27GTM-N67NBX%27%29%3B%3C%2Fscript%3E%0A%3C%21--+End+Google+Tag+Manager+--%3E%0A%0A'
   49     1      > RETURN                                                   null

End of function add_google_tag_manager_code

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.47 ms | 1399 KiB | 13 Q