3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 935.2832234; $time = round($time, 2); var_dump($time); var_dump($time % 60); $timeOut = ''; if ($time > 60 * 60) { $timeOut .= gmdate('H', $time) . ' hours, '; } if ($time > 60) { $timeOut .= gmdate('i', $time) . ' min, '; } $timeOut .= number_format(($time % 60), 2) . ' sec'; echo ' (' . $timeOut . ' sec)' . "\n\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 30
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
Branch analysis from position: 22
filename:       /in/uJL8p
function name:  (null)
number of ops:  42
compiled vars:  !0 = $time, !1 = $timeOut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 935.283
    5     1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        MOD                                              ~6      !0, 60
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
   10    13        ASSIGN                                                   !1, ''
   11    14        IS_SMALLER                                               3600, !0
         15      > JMPZ                                                     ~9, ->22
   12    16    >   INIT_FCALL                                               'gmdate'
         17        SEND_VAL                                                 'H'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     $10, '+hours%2C+'
         21        ASSIGN_OP                                     8          !1, ~11
   14    22    >   IS_SMALLER                                               60, !0
         23      > JMPZ                                                     ~13, ->30
   15    24    >   INIT_FCALL                                               'gmdate'
         25        SEND_VAL                                                 'i'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $14     
         28        CONCAT                                           ~15     $14, '+min%2C+'
         29        ASSIGN_OP                                     8          !1, ~15
   17    30    >   INIT_FCALL                                               'number_format'
         31        MOD                                              ~17     !0, 60
         32        SEND_VAL                                                 ~17
         33        SEND_VAL                                                 2
         34        DO_ICALL                                         $18     
         35        CONCAT                                           ~19     $18, '+sec'
         36        ASSIGN_OP                                     8          !1, ~19
   19    37        CONCAT                                           ~21     '+%28', !1
         38        CONCAT                                           ~22     ~21, '+sec%29'
         39        CONCAT                                           ~23     ~22, '%0A%0A'
         40        ECHO                                                     ~23
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.52 ms | 1392 KiB | 21 Q