3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "ELVIS MASTAINE KANGABAM"; $hidden_name = substr($name, 0,3) . preg_replace("/([a-zA-Z])/", "x", substr($name,3,-3)) . substr($name, -3); echo $hidden_name;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CEK9B
function name:  (null)
number of ops:  25
compiled vars:  !0 = $name, !1 = $hidden_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'ELVIS+MASTAINE+KANGABAM'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $3      
          6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%28%5Ba-zA-Z%5D%29%2F'
          8        SEND_VAL                                                 'x'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 3
         12        SEND_VAL                                                 -3
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        CONCAT                                           ~6      $3, $5
         17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 -3
         20        DO_ICALL                                         $7      
         21        CONCAT                                           ~8      ~6, $7
         22        ASSIGN                                                   !1, ~8
    6    23        ECHO                                                     !1
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
237.52 ms | 1000 KiB | 15 Q