3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 593.723 ; $time = round($time, 2); var_dump($time); var_dump(gmdate('H:i:s', $time) . substr($time, strpos($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 = 31, Position 2 = 37
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 45
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
Branch analysis from position: 37
filename:       /in/HK53s
function name:  (null)
number of ops:  57
compiled vars:  !0 = $time, !1 = $timeOut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 593.723
    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        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        INIT_FCALL                                               'strpos'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '.'
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                         $8      
         22        CONCAT                                           ~9      $6, $8
         23        SEND_VAL                                                 ~9
         24        DO_ICALL                                                 
   10    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   13    28        ASSIGN                                                   !1, ''
   14    29        IS_SMALLER                                               3600, !0
         30      > JMPZ                                                     ~13, ->37
   15    31    >   INIT_FCALL                                               'gmdate'
         32        SEND_VAL                                                 'H'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $14     
         35        CONCAT                                           ~15     $14, '+hours%2C+'
         36        ASSIGN_OP                                     8          !1, ~15
   17    37    >   IS_SMALLER                                               60, !0
         38      > JMPZ                                                     ~17, ->45
   18    39    >   INIT_FCALL                                               'gmdate'
         40        SEND_VAL                                                 'i'
         41        SEND_VAR                                                 !0
         42        DO_ICALL                                         $18     
         43        CONCAT                                           ~19     $18, '+min%2C+'
         44        ASSIGN_OP                                     8          !1, ~19
   20    45    >   INIT_FCALL                                               'number_format'
         46        MOD                                              ~21     !0, 60
         47        SEND_VAL                                                 ~21
         48        SEND_VAL                                                 2
         49        DO_ICALL                                         $22     
         50        CONCAT                                           ~23     $22, '+sec'
         51        ASSIGN_OP                                     8          !1, ~23
   22    52        CONCAT                                           ~25     '+%28', !1
         53        CONCAT                                           ~26     ~25, '+sec%29'
         54        CONCAT                                           ~27     ~26, '%0A%0A'
         55        ECHO                                                     ~27
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.26 ms | 1392 KiB | 25 Q