3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = get_post_custom_values('GalIMG') ; $BG_Img = $BG_Img[0]; if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } echo " <li class='${imgClass}'> ${img} <h3> <a href='${link}' style='background-image:url('${BG_Img}'); display:block;'>${title} </a> </h3> </li> ";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/LTcEo
function name:  (null)
number of ops:  35
compiled vars:  !0 = $imgClass, !1 = $img, !2 = $title, !3 = $link, !4 = $BG_Img
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'no-img'
    3     1        ASSIGN                                                   !1, ''
    4     2        INIT_FCALL_BY_NAME                                       'the_title'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !2, $7
    5     5        INIT_FCALL_BY_NAME                                       'the_permalink'
          6        DO_FCALL                                      0  $9      
          7        ASSIGN                                                   !3, $9
    7     8        INIT_FCALL_BY_NAME                                       'get_post_custom_values'
          9        SEND_VAL_EX                                              'GalIMG'
         10        DO_FCALL                                      0  $11     
         11        ASSIGN                                                   !4, $11
    8    12        FETCH_DIM_R                                      ~13     !4, 0
         13        ASSIGN                                                   !4, ~13
   10    14        INIT_FCALL_BY_NAME                                       'has_post_thumbnail'
         15        DO_FCALL                                      0  $15     
         16      > JMPZ                                                     $15, ->22
   11    17    >   ASSIGN                                                   !0, ''
   12    18        INIT_FCALL_BY_NAME                                       'the_post_thumbnail'
         19        SEND_VAL_EX                                              'alm-thumbnail'
         20        DO_FCALL                                      0  $17     
         21        ASSIGN                                                   !1, $17
   15    22    >   ROPE_INIT                                    11  ~20     '%0A%3Cli+class%3D%27'
   16    23        ROPE_ADD                                      1  ~20     ~20, !0
         24        ROPE_ADD                                      2  ~20     ~20, '%27%3E%0A++++'
   17    25        ROPE_ADD                                      3  ~20     ~20, !1
         26        ROPE_ADD                                      4  ~20     ~20, '%0A++++%3Ch3%3E%0A++++++++%3Ca+href%3D%27'
   19    27        ROPE_ADD                                      5  ~20     ~20, !3
         28        ROPE_ADD                                      6  ~20     ~20, '%27+style%3D%27background-image%3Aurl%28%27'
         29        ROPE_ADD                                      7  ~20     ~20, !4
         30        ROPE_ADD                                      8  ~20     ~20, '%27%29%3B+display%3Ablock%3B%27%3E'
         31        ROPE_ADD                                      9  ~20     ~20, !2
         32        ROPE_END                                     10  ~19     ~20, '%0A++++++++%3C%2Fa%3E%0A++++%3C%2Fh3%3E%0A%3C%2Fli%3E%0A'
         33        ECHO                                                     ~19
   23    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.45 ms | 1395 KiB | 13 Q