3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1394 KiB | 15 Q