3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function the_title() { return 'A Title';} function the_permalink() { return 'https://google.com';} function has_post_thumbnail() { return true;} function the_post_thumbnail($whateverThisIs) { return '<img src="https://upload.wikimedia.org/wikipedia/en/2/22/Charlie_Brown.png" />'; } function get_post_custom_values() { $key = 'Gal_IMG'; $value = 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; return 'https://en.wikipedia.org/wiki/Main_Page#/media/File:BepiColombo_spacecraft_model.png'; } $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = get_post_custom_values('GalIMG') ; ?> <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <h3> <a href="<?php the_permalink(); ?>" style=" background:transparent; background-image:url(''); color:<?php $key_values2 = get_post_custom_values( 'hlwhite' ); foreach ( $key_values2 as $key => $value2 ) {echo "$value2";} ?>; display:block;"> <?php the_title(); ?> </a> </h3> </li>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 38
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 24
Branch analysis from position: 18
filename:       /in/Rj453
function name:  (null)
number of ops:  44
compiled vars:  !0 = $imgClass, !1 = $img, !2 = $title, !3 = $link, !4 = $BG_Img, !5 = $key_values2, !6 = $value2, !7 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 'no-img'
   17     1        ASSIGN                                                   !1, ''
   18     2        INIT_FCALL                                               'the_title'
          3        DO_FCALL                                      0  $10     
          4        ASSIGN                                                   !2, $10
   19     5        INIT_FCALL                                               'the_permalink'
          6        DO_FCALL                                      0  $12     
          7        ASSIGN                                                   !3, $12
   21     8        INIT_FCALL                                               'get_post_custom_values'
          9        SEND_VAL                                                 'GalIMG'
         10        DO_FCALL                                      0  $14     
         11        ASSIGN                                                   !4, $14
   24    12        ECHO                                                     '%3Cli'
         13        INIT_FCALL                                               'has_post_thumbnail'
         14        DO_FCALL                                      0  $16     
         15        BOOL_NOT                                         ~17     $16
         16      > JMPZ                                                     ~17, ->18
         17    >   ECHO                                                     '+class%3D%22no-img%22'
         18    >   ECHO                                                     '%3E%0A++'
   26    19        INIT_FCALL                                               'has_post_thumbnail'
         20        DO_FCALL                                      0  $18     
         21      > JMPZ                                                     $18, ->24
   27    22    >   INIT_FCALL                                               'the_post_thumbnail'
         23        DO_FCALL                                      0          
   30    24    >   ECHO                                                     '%3Ch3%3E%0A%3Ca+href%3D%22'
   31    25        INIT_FCALL                                               'the_permalink'
         26        DO_FCALL                                      0          
         27        ECHO                                                     '%22+style%3D%22%0A++background%3Atransparent%3B+%0A++background-image%3Aurl%28%27%27%29%3B%0A++color%3A'
   35    28        INIT_FCALL                                               'get_post_custom_values'
         29        SEND_VAL                                                 'hlwhite'
         30        DO_FCALL                                      0  $21     
         31        ASSIGN                                                   !5, $21
   36    32      > FE_RESET_R                                       $23     !5, ->38
         33    > > FE_FETCH_R                                       ~24     $23, !6, ->38
         34    >   ASSIGN                                                   !7, ~24
         35        CAST                                          6  ~26     !6
         36        ECHO                                                     ~26
         37      > JMP                                                      ->33
         38    >   FE_FREE                                                  $23
   37    39        ECHO                                                     '%3B%0Adisplay%3Ablock%3B%22%3E%0A'
   39    40        INIT_FCALL                                               'the_title'
         41        DO_FCALL                                      0          
   40    42        ECHO                                                     '%3C%2Fa%3E%0A%3C%2Fh3%3E%0A%3C%2Fli%3E'
   42    43      > RETURN                                                   1

Function the_title:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rj453
function name:  the_title
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   'A+Title'
          1*     > RETURN                                                   null

End of function the_title

Function the_permalink:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rj453
function name:  the_permalink
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'https%3A%2F%2Fgoogle.com'
          1*     > RETURN                                                   null

End of function the_permalink

Function has_post_thumbnail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rj453
function name:  has_post_thumbnail
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <true>
          1*     > RETURN                                                   null

End of function has_post_thumbnail

Function the_post_thumbnail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rj453
function name:  the_post_thumbnail
number of ops:  3
compiled vars:  !0 = $whateverThisIs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1      > RETURN                                                   '%3Cimg+src%3D%22https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2F2%2F22%2FCharlie_Brown.png%22+%2F%3E'
    9     2*     > RETURN                                                   null

End of function the_post_thumbnail

Function get_post_custom_values:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rj453
function name:  get_post_custom_values
number of ops:  4
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 'Gal_IMG'
   13     1        ASSIGN                                                   !1, 'https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMain_Page%23%2Fmedia%2FFile%3ABepiColombo_spacecraft_model.png'
   14     2      > RETURN                                                   'https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMain_Page%23%2Fmedia%2FFile%3ABepiColombo_spacecraft_model.png'
   15     3*     > RETURN                                                   null

End of function get_post_custom_values

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.32 ms | 1411 KiB | 22 Q