3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isUserAuthorized = true; $siteAddress = 'sute.ru/'; class a { function getSources(){ return array('1'); } function getLink(){ return 'link'; } function getTitle(){ return 'title'; } } var_dump(@count > 0); $art = new a; if ($isUserAuthorized && $art->getSources() | @hrenateny){ $color = "#999999"; } else { $color = ""; } $link = "<a href='{$siteAddress}{$art->getLink()}' style='color: $color'>{$art->getTitle()}</a>"; echo $link;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/AYZgs
function name:  (null)
number of ops:  39
compiled vars:  !0 = $isUserAuthorized, !1 = $siteAddress, !2 = $art, !3 = $color, !4 = $link
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, 'sute.ru%2F'
   16     2        INIT_FCALL                                               'var_dump'
          3        BEGIN_SILENCE                                    ~7      
          4        FETCH_CONSTANT                                   ~8      'count'
          5        END_SILENCE                                              ~7
          6        IS_SMALLER                                       ~9      0, ~8
          7        SEND_VAL                                                 ~9
          8        DO_ICALL                                                 
   17     9        NEW                                              $11     'a'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $11
   18    12      > JMPZ_EX                                          ~14     !0, ->20
         13    >   INIT_METHOD_CALL                                         !2, 'getSources'
         14        DO_FCALL                                      0  $15     
         15        BEGIN_SILENCE                                    ~16     
         16        FETCH_CONSTANT                                   ~17     'hrenateny'
         17        END_SILENCE                                              ~16
         18        BW_OR                                            ~18     $15, ~17
         19        BOOL                                             ~14     ~18
         20    > > JMPZ                                                     ~14, ->23
   19    21    >   ASSIGN                                                   !3, '%23999999'
         22      > JMP                                                      ->24
   21    23    >   ASSIGN                                                   !3, ''
   24    24    >   ROPE_INIT                                     8  ~24     '%3Ca+href%3D%27'
         25        ROPE_ADD                                      1  ~24     ~24, !1
         26        INIT_METHOD_CALL                                         !2, 'getLink'
         27        DO_FCALL                                      0  $21     
         28        ROPE_ADD                                      2  ~24     ~24, $21
         29        ROPE_ADD                                      3  ~24     ~24, '%27+style%3D%27color%3A+'
         30        ROPE_ADD                                      4  ~24     ~24, !3
         31        ROPE_ADD                                      5  ~24     ~24, '%27%3E'
         32        INIT_METHOD_CALL                                         !2, 'getTitle'
         33        DO_FCALL                                      0  $22     
         34        ROPE_ADD                                      6  ~24     ~24, $22
         35        ROPE_END                                      7  ~23     ~24, '%3C%2Fa%3E'
         36        ASSIGN                                                   !4, ~23
   25    37        ECHO                                                     !4
         38      > RETURN                                                   1

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

End of function getsources

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

End of function getlink

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

End of function gettitle

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.65 ms | 1400 KiB | 15 Q