3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stamp = (int)date('z', strtotime('0001')); $stamp = sprintf('%03u', $stamp); echo $stamp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1PkKv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $stamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'z'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '0001'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        CAST                                          4  ~3      $2
          8        ASSIGN                                                   !0, ~3
    4     9        INIT_FCALL                                               'sprintf'
         10        SEND_VAL                                                 '%2503u'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
    5    14        ECHO                                                     !0
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.43 ms | 1394 KiB | 19 Q