3v4l.org

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

Function date2number:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gaQj3
function name:  Date2Number
number of ops:  18
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_R                                     $5      $4, 0
          6        ASSIGN                                                   !1, $5
          7        FETCH_LIST_R                                     $7      $4, 1
          8        ASSIGN                                                   !2, $7
          9        FETCH_LIST_R                                     $9      $4, 2
         10        ASSIGN                                                   !3, $9
         11        FREE                                                     $4
    4    12        DIV                                              ~11     !2, 60
         13        ASSIGN                                                   !2, ~11
    5    14        CONCAT                                           ~13     !1, '.'
         15        CONCAT                                           ~14     ~13, !2
         16      > RETURN                                                   ~14
    6    17*     > RETURN                                                   null

End of function date2number

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.89 ms | 1397 KiB | 16 Q