3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 13254566846; $rounded = round(($time / 60) * 60); echo 'before: ' . $time; echo "\n"; echo 'after: ' . $rounded;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OkukP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $time, !1 = $rounded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 13254566846
    4     1        INIT_FCALL                                               'round'
          2        DIV                                              ~3      !0, 60
          3        MUL                                              ~4      ~3, 60
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    6     7        CONCAT                                           ~7      'before%3A+', !0
          8        ECHO                                                     ~7
    7     9        ECHO                                                     '%0A'
    8    10        CONCAT                                           ~8      'after%3A+', !1
         11        ECHO                                                     ~8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.1 ms | 1394 KiB | 15 Q