3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 935.2832234; $time = round($time, 2); var_dump($time); var_dump(gmdate('H:i:s', $time)); var_dump($time); $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 = 22, Position 2 = 28
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 36
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 28
filename:       /in/L6lq3
function name:  (null)
number of ops:  48
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        INIT_FCALL                                               'gmdate'
         11        SEND_VAL                                                 'H%3Ai%3As'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
   13    19        ASSIGN                                                   !1, ''
   14    20        IS_SMALLER                                               3600, !0
         21      > JMPZ                                                     ~10, ->28
   15    22    >   INIT_FCALL                                               'gmdate'
         23        SEND_VAL                                                 'H'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $11     
         26        CONCAT                                           ~12     $11, '+hours%2C+'
         27        ASSIGN_OP                                     8          !1, ~12
   17    28    >   IS_SMALLER                                               60, !0
         29      > JMPZ                                                     ~14, ->36
   18    30    >   INIT_FCALL                                               'gmdate'
         31        SEND_VAL                                                 'i'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $15     
         34        CONCAT                                           ~16     $15, '+min%2C+'
         35        ASSIGN_OP                                     8          !1, ~16
   20    36    >   INIT_FCALL                                               'number_format'
         37        MOD                                              ~18     !0, 60
         38        SEND_VAL                                                 ~18
         39        SEND_VAL                                                 2
         40        DO_ICALL                                         $19     
         41        CONCAT                                           ~20     $19, '+sec'
         42        ASSIGN_OP                                     8          !1, ~20
   22    43        CONCAT                                           ~22     '+%28', !1
         44        CONCAT                                           ~23     ~22, '+sec%29'
         45        CONCAT                                           ~24     ~23, '%0A%0A'
         46        ECHO                                                     ~24
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.02 ms | 1400 KiB | 21 Q