3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_hour = "08:00"; $different_hour = 1; echo $newTime = date("H:i", strtotime("+{$different_hour}hour ".$start_hour));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UjCjm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $start_hour, !1 = $different_hour, !2 = $newTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '08%3A00'
    3     1        ASSIGN                                                   !1, 1
    4     2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'H%3Ai'
          4        INIT_FCALL                                               'strtotime'
          5        ROPE_INIT                                     3  ~6      '%2B'
          6        ROPE_ADD                                      1  ~6      ~6, !1
          7        ROPE_END                                      2  ~5      ~6, 'hour+'
          8        CONCAT                                           ~8      ~5, !0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        DO_ICALL                                         $10     
         13        ASSIGN                                           ~11     !2, $10
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.58 ms | 999 KiB | 15 Q