3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '2:30'; list($hours, $minutes) = explode(':', $input); echo $hours . '.' . $minutes / 60 * 100;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3qgCI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $input, !1 = $hours, !2 = $minutes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2%3A30'
          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        FREE                                                     $4
         10        CONCAT                                           ~9      !1, '.'
         11        DIV                                              ~10     !2, 60
         12        MUL                                              ~11     ~10, 100
         13        CONCAT                                           ~12     ~9, ~11
         14        ECHO                                                     ~12
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.52 ms | 1394 KiB | 15 Q