3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.19 ms | 1394 KiB | 17 Q