3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Get RSS Feed(s) // Get a SimplePie feed object from the specified feed source. $rss = fetch_feed( 'http://applythis.net/RaynerPersonnel/Search/rss/All/1' ); $maxitems = 0; if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly // Figure out how many total items there are, but limit it to 4. $maxitems = $rss->get_item_quantity( 4 ); // Build an array of all the items, starting with element 0 (first element). $rss_items = $rss->get_items( 0, $maxitems ); endif; ?> <div class="nJobs-container Jobs-container--alt"> <?php if ( $maxitems == 0 ) : ?> <span><?php _e( 'No items', 'my-text-domain' ); ?></span> <?php else : ?> <?php // Loop through each feed item and display each item as a hyperlink. ?> <?php foreach ( $rss_items as $item ) : ?> <a href="<?php echo esc_url( $item->get_link() ); ?>" title="rss feed" class="nJobs-job"> <span class="Jobs-role"><?php echo esc_html( $item->get_title() ); ?></span> <span class="Jobs-readmore Button">More info</span> </a> <?php endforeach; ?> <?php endif; ?> </div>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 29
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 49
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 49
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
Branch analysis from position: 19
filename:       /in/8BXhg
function name:  (null)
number of ops:  53
compiled vars:  !0 = $rss, !1 = $maxitems, !2 = $rss_items, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'fetch_feed'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fapplythis.net%2FRaynerPersonnel%2FSearch%2Frss%2FAll%2F1'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !0, $4
    6     4        ASSIGN                                                   !1, 0
    8     5        INIT_FCALL_BY_NAME                                       'is_wp_error'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $7      
          8        BOOL_NOT                                         ~8      $7
          9      > JMPZ                                                     ~8, ->19
   11    10    >   INIT_METHOD_CALL                                         !0, 'get_item_quantity'
         11        SEND_VAL_EX                                              4
         12        DO_FCALL                                      0  $9      
         13        ASSIGN                                                   !1, $9
   14    14        INIT_METHOD_CALL                                         !0, 'get_items'
         15        SEND_VAL_EX                                              0
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $11     
         18        ASSIGN                                                   !2, $11
   18    19    >   ECHO                                                     '%0A%3Cdiv+class%3D%22nJobs-container+Jobs-container--alt%22%3E%0A++++%0A'
   21    20        IS_EQUAL                                                 !1, 0
         21      > JMPZ                                                     ~13, ->29
   22    22    >   ECHO                                                     '++++++++%3Cspan%3E'
         23        INIT_FCALL_BY_NAME                                       '_e'
         24        SEND_VAL_EX                                              'No+items'
         25        SEND_VAL_EX                                              'my-text-domain'
         26        DO_FCALL                                      0          
         27        ECHO                                                     '%3C%2Fspan%3E%0A++++'
         28      > JMP                                                      ->51
   24    29    >   ECHO                                                     '++++++++'
   25    30        ECHO                                                     '++++++%0A++'
   26    31      > FE_RESET_R                                       $15     !2, ->49
         32    > > FE_FETCH_R                                               $15, !3, ->49
   27    33    >   ECHO                                                     '+++++++++++%0A++++++++++++++++%3Ca+href%3D%22'
   28    34        INIT_FCALL_BY_NAME                                       'esc_url'
         35        INIT_METHOD_CALL                                         !3, 'get_link'
         36        DO_FCALL                                      0  $16     
         37        SEND_VAR_NO_REF_EX                                       $16
         38        DO_FCALL                                      0  $17     
         39        ECHO                                                     $17
         40        ECHO                                                     '%22%0A++++++++++++++++++++title%3D%22rss+feed%22+class%3D%22nJobs-job%22%3E%0A%0A+++++++++++++++%0A%3Cspan+class%3D%22Jobs-role%22%3E'
   32    41        INIT_FCALL_BY_NAME                                       'esc_html'
         42        INIT_METHOD_CALL                                         !3, 'get_title'
         43        DO_FCALL                                      0  $18     
         44        SEND_VAR_NO_REF_EX                                       $18
         45        DO_FCALL                                      0  $19     
         46        ECHO                                                     $19
         47        ECHO                                                     '%3C%2Fspan%3E%0A%0A%3Cspan+class%3D%22Jobs-readmore+Button%22%3EMore+info%3C%2Fspan%3E%09%09%09%09%09%0A%09%09%09%09%09%0A%0A++++++++++++++++%3C%2Fa%3E%0A+++++++++++%0A++++++++'
   26    48      > JMP                                                      ->32
         49    >   FE_FREE                                                  $15
   40    50        ECHO                                                     '++++'
   41    51    >   ECHO                                                     '%0A%3C%2Fdiv%3E'
   42    52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.72 ms | 1399 KiB | 13 Q