3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTime("2016-03-22T23:00:00"); for ($i = 0; $i < 6; ++$i, $dt->modify('+30 minutes')) { echo $dt->format("Y-m-d\TH:i:s") . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/ImhYJ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dt, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2016-03-22T23%3A00%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->15
    5     6    >   INIT_METHOD_CALL                                         !0, 'format'
          7        SEND_VAL_EX                                              'Y-m-d%5CTH%3Ai%3As'
          8        DO_FCALL                                      0  $6      
          9        CONCAT                                           ~7      $6, '%0A'
         10        ECHO                                                     ~7
    4    11        PRE_INC                                                  !1
         12        INIT_METHOD_CALL                                         !0, 'modify'
         13        SEND_VAL_EX                                              '%2B30+minutes'
         14        DO_FCALL                                      0          
         15    >   IS_SMALLER                                               !1, 6
         16      > JMPNZ                                                    ~10, ->6
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
241.98 ms | 1001 KiB | 13 Q