3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tell_friend_href = get_custom_friendly_url("tell_friend.php") . "?item_id=" . urlencode($article_id) . "&type=articles"; $t->set_var("tell_friend_href", htmlspecialchars($tell_friend_href)); $t->set_var("articles_print_href", get_custom_friendly_url("article_print.php")); $t->set_var("article_id", htmlspecialchars($article_id)); $t->set_var("item_id", htmlspecialchars($article_id)); $rp = get_custom_friendly_url("article.php") . "?category_id=" . urlencode($category_id) . "&article_id=" . urlencode($article_id); $reviews_href = get_custom_friendly_url("articles_reviews.php") . "?category_id=" . urlencode($category_id) . "&article_id=" . urlencode($article_id); $t->set_var("rp_url", urlencode($rp)); $t->set_var("rp", htmlspecialchars($rp)); $t->set_var("reviews_href", htmlspecialchars($reviews_href)); console::log($details_fields); $details_fields = ",," . $details_fields . ",,"; $article_fields = array( "author_name", "author_email", "author_url", "link_url", "download_url", "short_description", "full_description", "keywords", "notes" ); if (!VA_Articles::check_exists($article_id)) { $t->set_var("article_item", ""); $t->set_var("NO_ARTICLE_MSG", NO_ARTICLE_MSG); $t->parse("no_article_item", false); $block_parsed = true; return; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 99, Position 2 = 114
Branch analysis from position: 99
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 114
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VWJ5D
function name:  (null)
number of ops:  115
compiled vars:  !0 = $tell_friend_href, !1 = $article_id, !2 = $t, !3 = $rp, !4 = $category_id, !5 = $reviews_href, !6 = $details_fields, !7 = $article_fields, !8 = $block_parsed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'get_custom_friendly_url'
          1        SEND_VAL_EX                                              'tell_friend.php'
          2        DO_FCALL                                      0  $9      
          3        CONCAT                                           ~10     $9, '%3Fitem_id%3D'
          4        INIT_FCALL                                               'urlencode'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $11     
          7        CONCAT                                           ~12     ~10, $11
          8        CONCAT                                           ~13     ~12, '%26type%3Darticles'
          9        ASSIGN                                                   !0, ~13
    4    10        INIT_METHOD_CALL                                         !2, 'set_var'
         11        SEND_VAL_EX                                              'tell_friend_href'
         12        INIT_FCALL                                               'htmlspecialchars'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $15     
         15        SEND_VAR_NO_REF_EX                                       $15
         16        DO_FCALL                                      0          
    5    17        INIT_METHOD_CALL                                         !2, 'set_var'
         18        SEND_VAL_EX                                              'articles_print_href'
         19        INIT_FCALL_BY_NAME                                       'get_custom_friendly_url'
         20        SEND_VAL_EX                                              'article_print.php'
         21        DO_FCALL                                      0  $17     
         22        SEND_VAR_NO_REF_EX                                       $17
         23        DO_FCALL                                      0          
    6    24        INIT_METHOD_CALL                                         !2, 'set_var'
         25        SEND_VAL_EX                                              'article_id'
         26        INIT_FCALL                                               'htmlspecialchars'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $19     
         29        SEND_VAR_NO_REF_EX                                       $19
         30        DO_FCALL                                      0          
    7    31        INIT_METHOD_CALL                                         !2, 'set_var'
         32        SEND_VAL_EX                                              'item_id'
         33        INIT_FCALL                                               'htmlspecialchars'
         34        SEND_VAR                                                 !1
         35        DO_ICALL                                         $21     
         36        SEND_VAR_NO_REF_EX                                       $21
         37        DO_FCALL                                      0          
    9    38        INIT_FCALL_BY_NAME                                       'get_custom_friendly_url'
         39        SEND_VAL_EX                                              'article.php'
         40        DO_FCALL                                      0  $23     
         41        CONCAT                                           ~24     $23, '%3Fcategory_id%3D'
         42        INIT_FCALL                                               'urlencode'
         43        SEND_VAR                                                 !4
         44        DO_ICALL                                         $25     
         45        CONCAT                                           ~26     ~24, $25
         46        CONCAT                                           ~27     ~26, '%26article_id%3D'
         47        INIT_FCALL                                               'urlencode'
         48        SEND_VAR                                                 !1
         49        DO_ICALL                                         $28     
         50        CONCAT                                           ~29     ~27, $28
         51        ASSIGN                                                   !3, ~29
   10    52        INIT_FCALL_BY_NAME                                       'get_custom_friendly_url'
         53        SEND_VAL_EX                                              'articles_reviews.php'
         54        DO_FCALL                                      0  $31     
         55        CONCAT                                           ~32     $31, '%3Fcategory_id%3D'
         56        INIT_FCALL                                               'urlencode'
         57        SEND_VAR                                                 !4
         58        DO_ICALL                                         $33     
         59        CONCAT                                           ~34     ~32, $33
         60        CONCAT                                           ~35     ~34, '%26article_id%3D'
         61        INIT_FCALL                                               'urlencode'
         62        SEND_VAR                                                 !1
         63        DO_ICALL                                         $36     
         64        CONCAT                                           ~37     ~35, $36
         65        ASSIGN                                                   !5, ~37
   12    66        INIT_METHOD_CALL                                         !2, 'set_var'
         67        SEND_VAL_EX                                              'rp_url'
         68        INIT_FCALL                                               'urlencode'
         69        SEND_VAR                                                 !3
         70        DO_ICALL                                         $39     
         71        SEND_VAR_NO_REF_EX                                       $39
         72        DO_FCALL                                      0          
   13    73        INIT_METHOD_CALL                                         !2, 'set_var'
         74        SEND_VAL_EX                                              'rp'
         75        INIT_FCALL                                               'htmlspecialchars'
         76        SEND_VAR                                                 !3
         77        DO_ICALL                                         $41     
         78        SEND_VAR_NO_REF_EX                                       $41
         79        DO_FCALL                                      0          
   14    80        INIT_METHOD_CALL                                         !2, 'set_var'
         81        SEND_VAL_EX                                              'reviews_href'
         82        INIT_FCALL                                               'htmlspecialchars'
         83        SEND_VAR                                                 !5
         84        DO_ICALL                                         $43     
         85        SEND_VAR_NO_REF_EX                                       $43
         86        DO_FCALL                                      0          
   16    87        INIT_STATIC_METHOD_CALL                                  'console', 'log'
         88        SEND_VAR_EX                                              !6
         89        DO_FCALL                                      0          
   17    90        CONCAT                                           ~46     '%2C%2C', !6
         91        CONCAT                                           ~47     ~46, '%2C%2C'
         92        ASSIGN                                                   !6, ~47
   18    93        ASSIGN                                                   !7, <array>
   23    94        INIT_STATIC_METHOD_CALL                                  'VA_Articles', 'check_exists'
         95        SEND_VAR_EX                                              !1
         96        DO_FCALL                                      0  $50     
         97        BOOL_NOT                                         ~51     $50
         98      > JMPZ                                                     ~51, ->114
   24    99    >   INIT_METHOD_CALL                                         !2, 'set_var'
        100        SEND_VAL_EX                                              'article_item'
        101        SEND_VAL_EX                                              ''
        102        DO_FCALL                                      0          
   25   103        INIT_METHOD_CALL                                         !2, 'set_var'
        104        SEND_VAL_EX                                              'NO_ARTICLE_MSG'
        105        FETCH_CONSTANT                                   ~53     'NO_ARTICLE_MSG'
        106        SEND_VAL_EX                                              ~53
        107        DO_FCALL                                      0          
   26   108        INIT_METHOD_CALL                                         !2, 'parse'
        109        SEND_VAL_EX                                              'no_article_item'
        110        SEND_VAL_EX                                              <false>
        111        DO_FCALL                                      0          
   27   112        ASSIGN                                                   !8, <true>
   28   113      > RETURN                                                   null
   29   114    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.15 ms | 1404 KiB | 17 Q