3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 132545646; $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/1VEEd
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, 132545646
    4     1        INIT_FCALL                                               'round'
          2        DIV                                              ~3      !0, 60
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        MUL                                              ~5      $4, 60
          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:
154.95 ms | 1394 KiB | 15 Q