3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.23 ms | 1396 KiB | 23 Q