3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aa = 'Уважаемые абоненты! Благодарим Вас за обратную связь в нашей Гостевой книге. '; function strMore($str, $count = 20, $button_name = 'Показать...'){ $str_array = explode(' ', $str); if(isset($str_array[count])){ $str_array[$count] = '<span class="more"><button></button>'.$b[20]; $str_array[] = '</span>'; } return implode(' ', $str_array); } echo strMore($aa);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6K003
function name:  (null)
number of ops:  6
compiled vars:  !0 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%A3%D0%B2%D0%B0%D0%B6%D0%B0%D0%B5%D0%BC%D1%8B%D0%B5+%D0%B0%D0%B1%D0%BE%D0%BD%D0%B5%D0%BD%D1%82%D1%8B%21+%D0%91%D0%BB%D0%B0%D0%B3%D0%BE%D0%B4%D0%B0%D1%80%D0%B8%D0%BC+%D0%92%D0%B0%D1%81+%D0%B7%D0%B0+%D0%BE%D0%B1%D1%80%D0%B0%D1%82%D0%BD%D1%83%D1%8E+%D1%81%D0%B2%D1%8F%D0%B7%D1%8C+%D0%B2+%D0%BD%D0%B0%D1%88%D0%B5%D0%B9+%D0%93%D0%BE%D1%81%D1%82%D0%B5%D0%B2%D0%BE%D0%B9+%D0%BA%D0%BD%D0%B8%D0%B3%D0%B5.+'
   16     1        INIT_FCALL                                               'strmore'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function strmore:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/6K003
function name:  strMore
number of ops:  23
compiled vars:  !0 = $str, !1 = $count, !2 = $button_name, !3 = $str_array, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      20
          2        RECV_INIT                                        !2      '%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C...'
    6     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !3, $5
    8     8        FETCH_CONSTANT                                   ~7      'count'
          9        ISSET_ISEMPTY_DIM_OBJ                         0          !3, ~7
         10      > JMPZ                                                     ~8, ->17
    9    11    >   FETCH_DIM_R                                      ~10     !4, 20
         12        CONCAT                                           ~11     '%3Cspan+class%3D%22more%22%3E%3Cbutton%3E%3C%2Fbutton%3E', ~10
         13        ASSIGN_DIM                                               !3, !1
         14        OP_DATA                                                  ~11
   10    15        ASSIGN_DIM                                               !3
         16        OP_DATA                                                  '%3C%2Fspan%3E'
   13    17    >   INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '+'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                         $13     
         21      > RETURN                                                   $13
   14    22*     > RETURN                                                   null

End of function strmore

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.09 ms | 1399 KiB | 18 Q