3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num=5; $timeUnit="01:02"; $current=strtotime($timeUnit); //seconds of current time $add=$num*60; // convert the $num into seconds echo date("H:i",$current+$add);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/felb6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $num, !1 = $timeUnit, !2 = $current, !3 = $add
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, '01%3A02'
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    8     6        MUL                                              ~8      !0, 60
          7        ASSIGN                                                   !3, ~8
   10     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'H%3Ai'
         10        ADD                                              ~10     !2, !3
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                         $11     
         13        ECHO                                                     $11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
228.02 ms | 1394 KiB | 17 Q