3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($index = 0; $index < 24; $index++) { $times = DateTime::createFromFormat('l jS \of F Y h:i:s A', $index.':00:00'); $times = $times->getTimestamp(); var_dump($times); }
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 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/Sd1b1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $index, !1 = $times
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->15
    4     2    >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          3        SEND_VAL                                                 'l+jS+%5Cof+F+Y+h%3Ai%3As+A'
          4        CONCAT                                           ~3      !0, '%3A00%3A00'
          5        SEND_VAL                                                 ~3
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
    5     8        INIT_METHOD_CALL                                         !1, 'getTimestamp'
          9        DO_FCALL                                      0  $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    3    14        PRE_INC                                                  !0
         15    >   IS_SMALLER                                               !0, 24
         16      > JMPNZ                                                    ~10, ->2
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1395 KiB | 15 Q