3v4l.org

run code in 300+ PHP versions simultaneously
<?php //По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются российские вооружен... #Новости_0629 #.. $stxt = "По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются российские вооруженные силы."; $keywords = ''; $keywords = explode(',',$keywords); $other_text = "...<br> #Новости_0629"; foreach ($keywords as $value) { $other_text.= !empty($value) ? " #" . trim($value) : ''; } $other_text .= "<br> Подробнее: http://www.0629.com.ua/news/489813"; $strlen_other = strlen($other_text); echo $strlen_other . PHP_EOL; $description_text_lenght = 220 - $strlen_other; $full_text = mb_substr($stxt, 0, $description_text_lenght,'UTF-8') . $other_text; if(true){ $full_text .="<br> <img src='http://s.citysites.ua/section/newsIcon/upload/images/news/icon/93917261-8562-kryim_13941132274.jpg'/><br>"; } var_dump($full_text);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 22
filename:       /in/uDDYW
function name:  (null)
number of ops:  44
compiled vars:  !0 = $stxt, !1 = $keywords, !2 = $other_text, !3 = $value, !4 = $strlen_other, !5 = $description_text_lenght, !6 = $full_text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%9F%D0%BE+%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D0%BC+%D0%B2%D0%B8%D1%86%D0%B5-%D0%BF%D1%80%D0%B5%D0%BC%D1%8C%D0%B5%D1%80%D0%B0+%D0%9A%D1%80%D1%8B%D0%BC%D0%B0%2C+%D0%B5%D0%B4%D0%B8%D0%BD%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8+%D0%B7%D0%B0%D0%BA%D0%BE%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8+%D0%B2%D0%BE%D0%BE%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%BD%D1%8B%D0%BC%D0%B8+%D1%84%D0%BE%D1%80%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F%D0%BC%D0%B8+%D0%BD%D0%B0+%D1%82%D0%B5%D1%80%D1%80%D0%B8%D1%82%D0%BE%D1%80%D0%B8%D0%B8+%D0%9A%D1%80%D1%8B%D0%BC%D0%B0+%D1%8F%D0%B2%D0%BB%D1%8F%D1%8E%D1%82%D1%81%D1%8F+%D1%80%D0%BE%D1%81%D1%81%D0%B8%D0%B9%D1%81%D0%BA%D0%B8%D0%B5+%D0%B2%D0%BE%D0%BE%D1%80%D1%83%D0%B6%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5+%D1%81%D0%B8%D0%BB%D1%8B.'
    4     1        ASSIGN                                                   !1, ''
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $9      
          6        ASSIGN                                                   !1, $9
    7     7        ASSIGN                                                   !2, '...%3Cbr%3E+%23%D0%9D%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8_0629'
    9     8      > FE_RESET_R                                       $12     !1, ->22
          9    > > FE_FETCH_R                                               $12, !3, ->22
   10    10    >   ISSET_ISEMPTY_CV                                 ~13     !3
         11        BOOL_NOT                                         ~14     ~13
         12      > JMPZ                                                     ~14, ->19
         13    >   INIT_FCALL                                               'trim'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $15     
         16        CONCAT                                           ~16     '+%23', $15
         17        QM_ASSIGN                                        ~17     ~16
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~17     ''
         20    >   ASSIGN_OP                                     8          !2, ~17
    9    21      > JMP                                                      ->9
         22    >   FE_FREE                                                  $12
   13    23        ASSIGN_OP                                     8          !2, '%3Cbr%3E+%D0%9F%D0%BE%D0%B4%D1%80%D0%BE%D0%B1%D0%BD%D0%B5%D0%B5%3A+http%3A%2F%2Fwww.0629.com.ua%2Fnews%2F489813'
   15    24        STRLEN                                           ~20     !2
         25        ASSIGN                                                   !4, ~20
   17    26        CONCAT                                           ~22     !4, '%0A'
         27        ECHO                                                     ~22
   19    28        SUB                                              ~23     220, !4
         29        ASSIGN                                                   !5, ~23
   21    30        INIT_FCALL                                               'mb_substr'
         31        SEND_VAR                                                 !0
         32        SEND_VAL                                                 0
         33        SEND_VAR                                                 !5
         34        SEND_VAL                                                 'UTF-8'
         35        DO_ICALL                                         $25     
         36        CONCAT                                           ~26     $25, !2
         37        ASSIGN                                                   !6, ~26
   23    38      > JMPZ                                                     <true>, ->40
   24    39    >   ASSIGN_OP                                     8          !6, '%3Cbr%3E+%3Cimg+src%3D%27http%3A%2F%2Fs.citysites.ua%2Fsection%2FnewsIcon%2Fupload%2Fimages%2Fnews%2Ficon%2F93917261-8562-kryim_13941132274.jpg%27%2F%3E%3Cbr%3E'
   27    40    >   INIT_FCALL                                               'var_dump'
         41        SEND_VAR                                                 !6
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.7 ms | 1392 KiB | 21 Q