3v4l.org

run code in 300+ PHP versions simultaneously
<?php function zerofill($mStretch, $iLength = 2) { $sPrintfString = '%0' . (int)$iLength . 's'; return sprintf($sPrintfString, $mStretch); } var_dump(zerofile("asd", 10));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dg46I
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL_BY_NAME                                       'zerofile'
          2        SEND_VAL_EX                                              'asd'
          3        SEND_VAL_EX                                              10
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function zerofill:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dg46I
function name:  zerofill
number of ops:  12
compiled vars:  !0 = $mStretch, !1 = $iLength, !2 = $sPrintfString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      2
    5     2        CAST                                          4  ~3      !1
          3        CONCAT                                           ~4      '%250', ~3
          4        CONCAT                                           ~5      ~4, 's'
          5        ASSIGN                                                   !2, ~5
    6     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10      > RETURN                                                   $7
    7    11*     > RETURN                                                   null

End of function zerofill

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.94 ms | 1395 KiB | 17 Q