3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime("07:17:46"); echo $time.'<br />'; $round = 15*60; $rounded = round($time / $round) * $round; echo date("H:i:s", $rounded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bqi4t
function name:  (null)
number of ops:  19
compiled vars:  !0 = $time, !1 = $round, !2 = $rounded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '07%3A17%3A46'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        CONCAT                                           ~5      !0, '%3Cbr+%2F%3E'
          5        ECHO                                                     ~5
    5     6        ASSIGN                                                   !1, 900
    6     7        INIT_FCALL                                               'round'
          8        DIV                                              ~7      !0, !1
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        MUL                                              ~9      !1, $8
         12        ASSIGN                                                   !2, ~9
    7    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'H%3Ai%3As'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 942 KiB | 20 Q