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 // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // 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_filter('the_content', 'add_suf_hatom_data');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WRAc9
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL_BY_NAME                                       'add_filter'
          1        SEND_VAL_EX                                              'x_enqueue_parent_stylesheet'
          2        SEND_VAL_EX                                              '__return_true'
          3        DO_FCALL                                      0          
   32     4        INIT_FCALL_BY_NAME                                       'add_filter'
          5        SEND_VAL_EX                                              'the_content'
          6        SEND_VAL_EX                                              'add_suf_hatom_data'
          7        DO_FCALL                                      0          
          8      > 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/WRAc9
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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.61 ms | 1390 KiB | 13 Q