3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function Date2Number($date) { list($hours, $minutes, $seconds) = explode(":", $date); $minutes = ($minutes / 60) * 10; return $hours.".".$minutes; } echo Date2Number("48:30:00"); ?>
based on gaQj3
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/3m2D0
function name:  (null)
number of ops:  6
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   7     1        INIT_FCALL                                               'date2number'
         2        SEND_VAL                                                 '48%3A30%3A00'
         3        DO_FCALL                                      0  $0      
         4        ECHO                                                     $0
         5      > RETURN                                                   1

Function date2number:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/3m2D0
function name:  Date2Number
number of ops:  19
compiled vars:  !0 = $date, !1 = $hours, !2 = $minutes, !3 = $seconds
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   RECV                                             !0      
   3     1        INIT_FCALL                                               'explode'
         2        SEND_VAL                                                 '%3A'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                         $4      
         5        FETCH_LIST                                       $5      $4, 0
         6        ASSIGN                                                   !1, $5
         7        FETCH_LIST                                       $7      $4, 1
         8        ASSIGN                                                   !2, $7
         9        FETCH_LIST                                       $9      $4, 2
        10        ASSIGN                                                   !3, $9
        11        FREE                                                     $4
   4    12        DIV                                              ~11     !2, 60
        13        MUL                                              ~12     ~11, 10
        14        ASSIGN                                                   !2, ~12
   5    15        CONCAT                                           ~14     !1, '.'
        16        CONCAT                                           ~15     ~14, !2
        17      > RETURN                                                   ~15
   6    18*     > RETURN                                                   null

End of function date2number

Generated using Vulcan Logic Dumper, using php 7.3.0