3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t=time(); $interval=15*60; $last = $t - $t % $interval; $next = $last + $interval; echo "Next interval at ".strftime('%H:%M:%S', $next)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5pC6U
function name:  (null)
number of ops:  17
compiled vars:  !0 = $t, !1 = $interval, !2 = $last, !3 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    5     3        ASSIGN                                                   !1, 900
    6     4        MOD                                              ~7      !0, !1
          5        SUB                                              ~8      !0, ~7
          6        ASSIGN                                                   !2, ~8
    7     7        ADD                                              ~10     !2, !1
          8        ASSIGN                                                   !3, ~10
    9     9        INIT_FCALL                                               'strftime'
         10        SEND_VAL                                                 '%25H%3A%25M%3A%25S'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $12     
         13        CONCAT                                           ~13     'Next+interval+at+', $12
         14        CONCAT                                           ~14     ~13, '%0A'
         15        ECHO                                                     ~14
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1394 KiB | 17 Q