3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $selectedTime = "9:15:00"; // $datetime = DateTime::createFromFormat('g:i:s', $selectedTime); // $datetime->modify('+15 minutes'); // echo $datetime->format('H:i:s'); $time='5'; //, 8.3, 2.2. $x=explode('.',$time); $min=60*($x[1]/10); echo $x[0] .'hours and '.$min.'mins';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G12Bi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $time, !1 = $x, !2 = $min
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '5'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   11     6        FETCH_DIM_R                                      ~6      !1, 1
          7        DIV                                              ~7      ~6, 10
          8        MUL                                              ~8      ~7, 60
          9        ASSIGN                                                   !2, ~8
   13    10        FETCH_DIM_R                                      ~10     !1, 0
         11        CONCAT                                           ~11     ~10, 'hours+and+'
         12        CONCAT                                           ~12     ~11, !2
         13        CONCAT                                           ~13     ~12, 'mins'
         14        ECHO                                                     ~13
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.48 ms | 1394 KiB | 15 Q