3v4l.org

run code in 500+ PHP versions simultaneously
<?php $num = 5; echo str_pad($num, 6, '0', STR_PAD_LEFT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Fgdp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $num
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 5
    5     1        INIT_FCALL                                                   'str_pad'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     6
          4        SEND_VAL                                                     '0'
          5        SEND_VAL                                                     0
          6        DO_ICALL                                             $2      
          7        ECHO                                                         $2
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
135.48 ms | 2102 KiB | 14 Q