3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_social_buttons() { $hashed_tags = get_hashed_tags(); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID), 'full' ); $html = ''; $html = '<ul class="social">'; $html .= '<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<' . rawurlencode(get_the_permalink()) .'><i class="fa fa-facebook fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://www.pinterest.com/pin/create/button/?url=' . rawurlencode(get_bloginfo('url'). '/' .get_the_permalink()) .'&media='. rawurlencode($thumb[0]) .'&description=' . rawurlencode(get_the_title() . ' ' . $hashed_tags) .'"><i class="fa fa-pinterest fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://twitter.com/home?status=' . rawurlencode(get_the_title() . ' ' . get_the_permalink() . ' ' . $hashed_tags()) .'><i class="fa fa-twitter fa-lg"></i></a></li>'; $html .= '</ul>'; return $html; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJX5d
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function get_social_buttons:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KJX5d
function name:  get_social_buttons
number of ops:  70
compiled vars:  !0 = $hashed_tags, !1 = $thumb, !2 = $post, !3 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'get_hashed_tags'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
    4     3        INIT_FCALL_BY_NAME                                       'wp_get_attachment_image_src'
          4        INIT_FCALL_BY_NAME                                       'get_post_thumbnail_id'
          5        CHECK_FUNC_ARG                                           
          6        FETCH_OBJ_FUNC_ARG                               $6      !2, 'ID'
          7        SEND_FUNC_ARG                                            $6
          8        DO_FCALL                                      0  $7      
          9        SEND_VAR_NO_REF_EX                                       $7
         10        SEND_VAL_EX                                              'full'
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                                   !1, $8
    5    13        ASSIGN                                                   !3, ''
    6    14        ASSIGN                                                   !3, '%3Cul+class%3D%22social%22%3E'
    7    15        INIT_FCALL                                               'rawurlencode'
         16        INIT_FCALL_BY_NAME                                       'get_the_permalink'
         17        DO_FCALL                                      0  $12     
         18        SEND_VAR                                                 $12
         19        DO_ICALL                                         $13     
         20        CONCAT                                           ~14     '%3Cli%3E%3Ca+target%3D%22_blank%22+href%3D%22https%3A%2F%2Fwww.facebook.com%2Fsharer%2Fsharer.php%3Fu%3D%3C', $13
         21        CONCAT                                           ~15     ~14, '%3E%3Ci+class%3D%22fa+fa-facebook+fa-lg%22%3E%3C%2Fi%3E%3C%2Fa%3E%3C%2Fli%3E'
         22        ASSIGN_OP                                     8          !3, ~15
    8    23        INIT_FCALL                                               'rawurlencode'
         24        INIT_FCALL_BY_NAME                                       'get_bloginfo'
         25        SEND_VAL_EX                                              'url'
         26        DO_FCALL                                      0  $17     
         27        CONCAT                                           ~18     $17, '%2F'
         28        INIT_FCALL_BY_NAME                                       'get_the_permalink'
         29        DO_FCALL                                      0  $19     
         30        CONCAT                                           ~20     ~18, $19
         31        SEND_VAL                                                 ~20
         32        DO_ICALL                                         $21     
         33        CONCAT                                           ~22     '%3Cli%3E%3Ca+target%3D%22_blank%22+href%3D%22http%3A%2F%2Fwww.pinterest.com%2Fpin%2Fcreate%2Fbutton%2F%3Furl%3D', $21
         34        CONCAT                                           ~23     ~22, '%26media%3D'
         35        INIT_FCALL                                               'rawurlencode'
         36        FETCH_DIM_R                                      ~24     !1, 0
         37        SEND_VAL                                                 ~24
         38        DO_ICALL                                         $25     
         39        CONCAT                                           ~26     ~23, $25
         40        CONCAT                                           ~27     ~26, '%26description%3D'
         41        INIT_FCALL                                               'rawurlencode'
         42        INIT_FCALL_BY_NAME                                       'get_the_title'
         43        DO_FCALL                                      0  $28     
         44        CONCAT                                           ~29     $28, '+'
         45        CONCAT                                           ~30     ~29, !0
         46        SEND_VAL                                                 ~30
         47        DO_ICALL                                         $31     
         48        CONCAT                                           ~32     ~27, $31
         49        CONCAT                                           ~33     ~32, '%22%3E%3Ci+class%3D%22fa+fa-pinterest+fa-lg%22%3E%3C%2Fi%3E%3C%2Fa%3E%3C%2Fli%3E'
         50        ASSIGN_OP                                     8          !3, ~33
    9    51        INIT_FCALL                                               'rawurlencode'
         52        INIT_FCALL_BY_NAME                                       'get_the_title'
         53        DO_FCALL                                      0  $35     
         54        CONCAT                                           ~36     $35, '+'
         55        INIT_FCALL_BY_NAME                                       'get_the_permalink'
         56        DO_FCALL                                      0  $37     
         57        CONCAT                                           ~38     ~36, $37
         58        CONCAT                                           ~39     ~38, '+'
         59        INIT_DYNAMIC_CALL                                        !0
         60        DO_FCALL                                      0  $40     
         61        CONCAT                                           ~41     ~39, $40
         62        SEND_VAL                                                 ~41
         63        DO_ICALL                                         $42     
         64        CONCAT                                           ~43     '%3Cli%3E%3Ca+target%3D%22_blank%22+href%3D%22http%3A%2F%2Ftwitter.com%2Fhome%3Fstatus%3D', $42
         65        CONCAT                                           ~44     ~43, '%3E%3Ci+class%3D%22fa+fa-twitter+fa-lg%22%3E%3C%2Fi%3E%3C%2Fa%3E%3C%2Fli%3E'
         66        ASSIGN_OP                                     8          !3, ~44
   10    67        ASSIGN_OP                                     8          !3, '%3C%2Ful%3E'
   12    68      > RETURN                                                   !3
   13    69*     > RETURN                                                   null

End of function get_social_buttons

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.74 ms | 1400 KiB | 15 Q