3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; /** * RSS2 Feed Template for displaying RSS2 Posts feed. * * @package WordPress * TARATUR */ function getLastCategory ($allcategories) { $catArray = explode("\n",$allcategories); $lastCat = $catArray[count($catArray)-2]; return $lastCat; } function transliterate($textCyrillic){ $cyr = array( 'а' ,'б' ,'в' ,'г' ,'д' ,'ѓ' ,'е' ,'ж' ,'з' ,'ѕ' ,'и' ,'ј' ,'к' ,'л' ,'љ' ,'м' ,'н' ,'њ' ,'о' ,'п' ,'р' ,'с' ,'т' ,'ќ' ,'у' ,'ф' ,'х' ,'ц' ,'ч' ,'џ' ,'ш' , 'А' ,'Б' ,'В' ,'Г' ,'Д' ,'Ѓ' ,'Е' ,'Ж' ,'З' ,'Ѕ' ,'И' ,'Ј' ,'К' ,'Л' ,'Љ' ,'М' ,'Н' ,'Њ' ,'О' ,'П' ,'Р' ,'С' ,'Т' ,'Ќ' ,'У' ,'Ф' ,'Х' ,'Ц' ,'Ч' ,'Џ' ,'Ш','„','”','–','…','Р','“'); $lat = array( 'a' ,'b' ,'v' ,'g' ,'d' ,'gj' ,'e' ,'zh' ,'z' ,'dz' ,'i' ,'j' ,'k' ,'l' ,'lj' ,'m' ,'n' ,'nj' ,'o' ,'p' ,'r' ,'s' ,'t' ,'kj' ,'u' ,'f' ,'h' ,'c' ,'ch' ,'dz', 'sh' , 'A' ,'B' ,'V' ,'G' ,'D' ,'Gj' ,'E' ,'Zh' ,'Z' ,'Dz' ,'I' ,'J' ,'K' ,'L' ,'Lj' ,'M' ,'N' ,'Nj' ,'O' ,'P' ,'R' ,'S' ,'T' ,'Kj' ,'U' ,'F' ,'H' ,'C' ,'Ch' ,'Dz', 'Sh' ,'"','"','-','...','R','"'); // Р… Рё РЏ СЃРµ исти return str_replace($cyr, $lat, $textCyrillic); } $smsContent = transliterate(strip_tags($content)); $smsContent = str_replace(array("\r\n", "\n", "\r"), ' ', $smsContent); $smsContent = str_replace("&nbsp;", ' ', $smsContent); $smsContent = str_replace("\xc2\xa0", ' ', $smsContent); $smsContent = preg_replace('!\s+!', ' ', $smsContent); $smsContent = substr($smsContent, 0, 300); $smsContent = substr($smsContent,0,strrpos($smsContent," ")); $smsContent = preg_replace('/[^\00-\255]+/u', '', $smsContent); ?> <SMStext><?php echo $smsContent; ?></SMStext>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IAiGZ
function name:  (null)
number of ops:  64
compiled vars:  !0 = $smsContent, !1 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'get_option'
          1        SEND_VAL_EX                                              'blog_charset'
          2        DO_FCALL                                      0  $2      
          3        CONCAT                                           ~3      '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22', $2
          4        CONCAT                                           ~4      ~3, '%22%3F'
          5        CONCAT                                           ~5      ~4, '%3E'
          6        ECHO                                                     ~5
   28     7        INIT_FCALL                                               'transliterate'
          8        INIT_FCALL                                               'strip_tags'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_FCALL                                      0  $7      
         13        ASSIGN                                                   !0, $7
   29    14        INIT_FCALL                                               'str_replace'
         15        SEND_VAL                                                 <array>
         16        SEND_VAL                                                 '+'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !0, $9
   30    20        INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 '%26nbsp%3B'
         22        SEND_VAL                                                 '+'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $11     
         25        ASSIGN                                                   !0, $11
   31    26        INIT_FCALL                                               'str_replace'
         27        SEND_VAL                                                 '%C2%A0'
         28        SEND_VAL                                                 '+'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $13     
         31        ASSIGN                                                   !0, $13
   32    32        INIT_FCALL                                               'preg_replace'
         33        SEND_VAL                                                 '%21%5Cs%2B%21'
         34        SEND_VAL                                                 '+'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                         $15     
         37        ASSIGN                                                   !0, $15
   33    38        INIT_FCALL                                               'substr'
         39        SEND_VAR                                                 !0
         40        SEND_VAL                                                 0
         41        SEND_VAL                                                 300
         42        DO_ICALL                                         $17     
         43        ASSIGN                                                   !0, $17
   34    44        INIT_FCALL                                               'substr'
         45        SEND_VAR                                                 !0
         46        SEND_VAL                                                 0
         47        INIT_FCALL                                               'strrpos'
         48        SEND_VAR                                                 !0
         49        SEND_VAL                                                 '+'
         50        DO_ICALL                                         $19     
         51        SEND_VAR                                                 $19
         52        DO_ICALL                                         $20     
         53        ASSIGN                                                   !0, $20
   35    54        INIT_FCALL                                               'preg_replace'
         55        SEND_VAL                                                 '%2F%5B%5E%5C00-%5C255%5D%2B%2Fu'
         56        SEND_VAL                                                 ''
         57        SEND_VAR                                                 !0
         58        DO_ICALL                                         $22     
         59        ASSIGN                                                   !0, $22
   38    60        ECHO                                                     '%09%09%09%0A%09%09%09%0A%09%09++++%3CSMStext%3E'
   40    61        ECHO                                                     !0
         62        ECHO                                                     '%3C%2FSMStext%3E'
         63      > RETURN                                                   1

Function getlastcategory:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IAiGZ
function name:  getLastCategory
number of ops:  12
compiled vars:  !0 = $allcategories, !1 = $catArray, !2 = $lastCat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   14     6        COUNT                                            ~5      !1
          7        SUB                                              ~6      ~5, 2
          8        FETCH_DIM_R                                      ~7      !1, ~6
          9        ASSIGN                                                   !2, ~7
   15    10      > RETURN                                                   !2
   16    11*     > RETURN                                                   null

End of function getlastcategory

Function transliterate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IAiGZ
function name:  transliterate
number of ops:  10
compiled vars:  !0 = $textCyrillic, !1 = $cyr, !2 = $lat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        ASSIGN                                                   !1, <array>
   21     2        ASSIGN                                                   !2, <array>
   25     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8      > RETURN                                                   $5
   26     9*     > RETURN                                                   null

End of function transliterate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.32 ms | 1407 KiB | 26 Q