3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.51 ms | 1395 KiB | 15 Q