3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time ='2013-03-30 01:15:00'; $stamp = strtotime($time); for($i=0; $i<4; $i++){ echo date('Y-m-d H:i:s', strtotime("+{$i} hours", $stamp))."<br />\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
filename:       /in/lGpnH
function name:  (null)
number of ops:  24
compiled vars:  !0 = $time, !1 = $stamp, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2013-03-30+01%3A15%3A00'
    3     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    4     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->21
    5     7    >   INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        INIT_FCALL                                               'strtotime'
         10        ROPE_INIT                                     3  ~8      '%2B'
         11        ROPE_ADD                                      1  ~8      ~8, !2
         12        ROPE_END                                      2  ~7      ~8, '+hours'
         13        SEND_VAL                                                 ~7
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     $11, '%3Cbr+%2F%3E%0A'
         19        ECHO                                                     ~12
    4    20        PRE_INC                                                  !2
         21    >   IS_SMALLER                                               !2, 4
         22      > JMPNZ                                                    ~14, ->7
    6    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.32 ms | 1395 KiB | 17 Q