3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Tekst($waarde) { global $htmlentitiesTabel; $waarde = str_replace("§","&sect;",$waarde); preg_match_all("#\[code\](.*?)\[/code\](\r)?(\n)?#is", $waarde, $GeenSmilies['code']); preg_match_all("#\[php\](.*?)\[/php\](\r)?(\n)?#is", $waarde, $GeenSmilies['php']); foreach($GeenSmilies as $i => $code) { foreach($code[0] as $nr => $tekst) { $waarde = str_replace($tekst,"§".$i.$nr."§",$waarde); } } $waarde = htmlentities($waarde,ENT_QUOTES); } // Smilies vervangen // UBB-codes vervangen $waarde = nl2br($waarde); foreach($GeenSmilies as $i => $code) { foreach($code[1] as $nr => $tekst) { $waarde = str_replace("&sect;$i$nr&sect;",Kleuren($tekst),$waarde); } } $waarde = str_replace("&amp;sect;","&sect;",$waarde);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 25
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 25
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 25
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/iNFNs
function name:  (null)
number of ops:  35
compiled vars:  !0 = $waarde, !1 = $GeenSmilies, !2 = $code, !3 = $i, !4 = $tekst, !5 = $nr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'nl2br'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !0, $6
   23     4      > FE_RESET_R                                       $8      !1, ->27
          5    > > FE_FETCH_R                                       ~9      $8, !2, ->27
          6    >   ASSIGN                                                   !3, ~9
   24     7        FETCH_DIM_R                                      ~11     !2, 1
          8      > FE_RESET_R                                       $12     ~11, ->25
          9    > > FE_FETCH_R                                       ~13     $12, !4, ->25
         10    >   ASSIGN                                                   !5, ~13
   25    11        INIT_FCALL                                               'str_replace'
         12        ROPE_INIT                                     4  ~16     '%26sect%3B'
         13        ROPE_ADD                                      1  ~16     ~16, !3
         14        ROPE_ADD                                      2  ~16     ~16, !5
         15        ROPE_END                                      3  ~15     ~16, '%26sect%3B'
         16        SEND_VAL                                                 ~15
         17        INIT_FCALL_BY_NAME                                       'Kleuren'
         18        SEND_VAR_EX                                              !4
         19        DO_FCALL                                      0  $18     
         20        SEND_VAR                                                 $18
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !0, $19
   24    24      > JMP                                                      ->9
         25    >   FE_FREE                                                  $12
   23    26      > JMP                                                      ->5
         27    >   FE_FREE                                                  $8
   28    28        INIT_FCALL                                               'str_replace'
         29        SEND_VAL                                                 '%26amp%3Bsect%3B'
         30        SEND_VAL                                                 '%26sect%3B'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $21     
         33        ASSIGN                                                   !0, $21
         34      > RETURN                                                   1

Function tekst:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 39
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 39
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/iNFNs
function name:  Tekst
number of ops:  46
compiled vars:  !0 = $waarde, !1 = $htmlentitiesTabel, !2 = $GeenSmilies, !3 = $code, !4 = $i, !5 = $tekst, !6 = $nr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        BIND_GLOBAL                                              !1, 'htmlentitiesTabel'
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%C2%A7'
          4        SEND_VAL                                                 '%26sect%3B'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !0, $7
    6     8        INIT_FCALL                                               'preg_match_all'
          9        SEND_VAL                                                 '%23%5C%5Bcode%5C%5D%28.%2A%3F%29%5C%5B%2Fcode%5C%5D%28%0D%29%3F%28%0A%29%3F%23is'
         10        SEND_VAR                                                 !0
         11        FETCH_DIM_W                                      $9      !2, 'code'
         12        SEND_REF                                                 $9
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'preg_match_all'
         15        SEND_VAL                                                 '%23%5C%5Bphp%5C%5D%28.%2A%3F%29%5C%5B%2Fphp%5C%5D%28%0D%29%3F%28%0A%29%3F%23is'
         16        SEND_VAR                                                 !0
         17        FETCH_DIM_W                                      $11     !2, 'php'
         18        SEND_REF                                                 $11
         19        DO_ICALL                                                 
    8    20      > FE_RESET_R                                       $13     !2, ->39
         21    > > FE_FETCH_R                                       ~14     $13, !3, ->39
         22    >   ASSIGN                                                   !4, ~14
    9    23        FETCH_DIM_R                                      ~16     !3, 0
         24      > FE_RESET_R                                       $17     ~16, ->37
         25    > > FE_FETCH_R                                       ~18     $17, !5, ->37
         26    >   ASSIGN                                                   !6, ~18
   10    27        INIT_FCALL                                               'str_replace'
         28        SEND_VAR                                                 !5
         29        CONCAT                                           ~20     '%C2%A7', !4
         30        CONCAT                                           ~21     ~20, !6
         31        CONCAT                                           ~22     ~21, '%C2%A7'
         32        SEND_VAL                                                 ~22
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $23     
         35        ASSIGN                                                   !0, $23
    9    36      > JMP                                                      ->25
         37    >   FE_FREE                                                  $17
    8    38      > JMP                                                      ->21
         39    >   FE_FREE                                                  $13
   14    40        INIT_FCALL                                               'htmlentities'
         41        SEND_VAR                                                 !0
         42        SEND_VAL                                                 3
         43        DO_ICALL                                         $25     
         44        ASSIGN                                                   !0, $25
   15    45      > RETURN                                                   null

End of function tekst

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.64 ms | 1404 KiB | 21 Q