3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _floor($time) { $elm = explode(':', $time); $elm[1] -= $elm[1] % 15; $elm[2] = '00'; return implode(':', $elm); } echo _floor('07:17:46') . PHP_EOL; echo _floor('06:25:25') . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBKDp
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               '_floor'
          1        SEND_VAL                                                 '07%3A17%3A46'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      $0, '%0A'
          4        ECHO                                                     ~1
   11     5        INIT_FCALL                                               '_floor'
          6        SEND_VAL                                                 '06%3A25%3A25'
          7        DO_FCALL                                      0  $2      
          8        CONCAT                                           ~3      $2, '%0A'
          9        ECHO                                                     ~3
   12    10      > RETURN                                                   1

Function _floor:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LBKDp
function name:  _floor
number of ops:  18
compiled vars:  !0 = $time, !1 = $elm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    5     6        FETCH_DIM_R                                      ~5      !1, 1
          7        MOD                                              ~6      ~5, 15
          8        ASSIGN_DIM_OP                -=               2          !1, 1
          9        OP_DATA                                                  ~6
    6    10        ASSIGN_DIM                                               !1, 2
         11        OP_DATA                                                  '00'
    7    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%3A'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16      > RETURN                                                   $8
    8    17*     > RETURN                                                   null

End of function _floor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.85 ms | 1403 KiB | 19 Q