3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = [ 'sec' => 1606329777, 'usec' => 5001, 'minuteswest' => -60, 'dsttime' => 0, ]; echo $parts['sec'] . '.' . $parts['usec']; echo PHP_EOL; echo $parts['sec'] . '.' . str_pad((string) $parts['usec'], 6, '0', STR_PAD_LEFT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bj6Xv
function name:  (null)
number of ops:  20
compiled vars:  !0 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        FETCH_DIM_R                                      ~2      !0, 'sec'
          2        CONCAT                                           ~3      ~2, '.'
          3        FETCH_DIM_R                                      ~4      !0, 'usec'
          4        CONCAT                                           ~5      ~3, ~4
          5        ECHO                                                     ~5
   12     6        ECHO                                                     '%0A'
   14     7        FETCH_DIM_R                                      ~6      !0, 'sec'
          8        CONCAT                                           ~7      ~6, '.'
          9        INIT_FCALL                                               'str_pad'
         10        FETCH_DIM_R                                      ~8      !0, 'usec'
         11        CAST                                          6  ~9      ~8
         12        SEND_VAL                                                 ~9
         13        SEND_VAL                                                 6
         14        SEND_VAL                                                 '0'
         15        SEND_VAL                                                 0
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     ~7, $10
         18        ECHO                                                     ~11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.71 ms | 1444 KiB | 14 Q