3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input =0.58333333333334; $hour = intval(24*$input); Var_dump($hour); $fraction = $hour-floor($hour); Echo $hour . " " . $fraction; // Echo $hour .":". Str_replace(".",":",((24*$input)-$hour)*60);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4VViW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $input, !1 = $hour, !2 = $fraction
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.583333
    4     1        MUL                                              ~4      !0, 24
          2        CAST                                          4  ~5      ~4
          3        ASSIGN                                                   !1, ~5
    5     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'floor'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        SUB                                              ~9      !1, $8
         11        ASSIGN                                                   !2, ~9
    7    12        CONCAT                                           ~11     !1, '+'
         13        CONCAT                                           ~12     ~11, !2
         14        ECHO                                                     ~12
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.72 ms | 1394 KiB | 17 Q