3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dt = getdate(); $hour = $dt['hours']; $hourRange = [$hour, $hour+1]; var_dump($hourRange);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tS4Im
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dt, !1 = $hour, !2 = $hourRange
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'getdate'
          1        DO_ICALL                                             $3      
          2        ASSIGN                                                       !0, $3
          3        FETCH_DIM_R                                          ~5      !0, 'hours'
          4        ASSIGN                                                       !1, ~5
          5        INIT_ARRAY                                           ~7      !1
          6        ADD                                                  ~8      !1, 1
          7        ADD_ARRAY_ELEMENT                                    ~7      ~8
          8        ASSIGN                                                       !2, ~7
    4     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
217.95 ms | 2237 KiB | 14 Q