3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '13290052201'; $string_length = mb_strlen($phone); $mark_length = 5; $head_length = ceil(($string-$mark_length)/2); $foot_length = $string_length-$head_length-$mark_length; echo mb_substr($string , 0, $head_length) . str_repeat('*', $mark_length) . mb_substr($m, -$foot_length, $foot_length);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hisN5
function name:  (null)
number of ops:  34
compiled vars:  !0 = $string, !1 = $string_length, !2 = $phone, !3 = $mark_length, !4 = $head_length, !5 = $foot_length, !6 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '13290052201'
    3     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    4     5        ASSIGN                                                   !3, 5
    5     6        INIT_FCALL                                               'ceil'
          7        SUB                                              ~11     !0, !3
          8        DIV                                              ~12     ~11, 2
          9        SEND_VAL                                                 ~12
         10        DO_ICALL                                         $13     
         11        ASSIGN                                                   !4, $13
    6    12        SUB                                              ~15     !1, !4
         13        SUB                                              ~16     ~15, !3
         14        ASSIGN                                                   !5, ~16
    7    15        INIT_FCALL                                               'mb_substr'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 0
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                         $18     
         20        INIT_FCALL                                               'str_repeat'
         21        SEND_VAL                                                 '%2A'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $19     
         24        CONCAT                                           ~20     $18, $19
         25        INIT_FCALL                                               'mb_substr'
         26        SEND_VAR                                                 !6
         27        MUL                                              ~21     !5, -1
         28        SEND_VAL                                                 ~21
         29        SEND_VAR                                                 !5
         30        DO_ICALL                                         $22     
         31        CONCAT                                           ~23     ~20, $22
         32        ECHO                                                     ~23
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.87 ms | 1396 KiB | 21 Q