3v4l.org

run code in 300+ PHP versions simultaneously
<?php $posttime = "12:30"; $number = "0.5"; $posttime = explode(":", $posttime); $hoursToNumber = $posttime[0]*60*60; $minutesToNumber = $posttime[1]*60; $number = ($number + $hoursToNumber + $minutesToNumber)/60/60; echo $number;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gYQBd
function name:  (null)
number of ops:  21
compiled vars:  !0 = $posttime, !1 = $number, !2 = $hoursToNumber, !3 = $minutesToNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12%3A30'
    4     1        ASSIGN                                                   !1, '0.5'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    7     7        FETCH_DIM_R                                      ~8      !0, 0
          8        MUL                                              ~9      ~8, 60
          9        MUL                                              ~10     ~9, 60
         10        ASSIGN                                                   !2, ~10
    8    11        FETCH_DIM_R                                      ~12     !0, 1
         12        MUL                                              ~13     ~12, 60
         13        ASSIGN                                                   !3, ~13
   10    14        ADD                                              ~15     !1, !2
         15        ADD                                              ~16     ~15, !3
         16        DIV                                              ~17     ~16, 60
         17        DIV                                              ~18     ~17, 60
         18        ASSIGN                                                   !1, ~18
   12    19        ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1395 KiB | 15 Q