3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1394 KiB | 17 Q