3v4l.org

run code in 300+ PHP versions simultaneously
<?php $login = 'abcdefg'; $maskedLogin = substr($login, 0, 3) . str_repeat('*', strlen($login) - 3); echo $maskedLogin;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T85Ab
function name:  (null)
number of ops:  16
compiled vars:  !0 = $login, !1 = $maskedLogin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcdefg'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $3      
          6        INIT_FCALL                                               'str_repeat'
          7        SEND_VAL                                                 '%2A'
          8        STRLEN                                           ~4      !0
          9        SUB                                              ~5      ~4, 3
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        CONCAT                                           ~7      $3, $6
         13        ASSIGN                                                   !1, ~7
    4    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1385 KiB | 17 Q