3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('ROTATE_PERIOD', 2); echo date('Y_m_d_H_') . sprintf("%02d", (floor(date('i') / ROTATE_PERIOD) * ROTATE_PERIOD));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UpBjl
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'ROTATE_PERIOD'
          2        SEND_VAL                                                 2
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y_m_d_H_'
          6        DO_ICALL                                         $1      
          7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 '%2502d'
          9        INIT_FCALL                                               'floor'
         10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'i'
         12        DO_ICALL                                         $2      
         13        FETCH_CONSTANT                                   ~3      'ROTATE_PERIOD'
         14        DIV                                              ~4      $2, ~3
         15        SEND_VAL                                                 ~4
         16        DO_ICALL                                         $5      
         17        FETCH_CONSTANT                                   ~6      'ROTATE_PERIOD'
         18        MUL                                              ~7      $5, ~6
         19        SEND_VAL                                                 ~7
         20        DO_ICALL                                         $8      
         21        CONCAT                                           ~9      $1, $8
         22        ECHO                                                     ~9
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.6 ms | 1395 KiB | 21 Q