3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reported = new DateTime('2018-05-17 05:04:34'); $reported->modify('+2 hours'); $now = new DateTime(); echo $now < $reported ? 'less than 2 hours' : 'more than 2 hours';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7BEL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $reported, !1 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2018-05-17+05%3A04%3A34'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'modify'
          5        SEND_VAL_EX                                              '%2B2+hours'
          6        DO_FCALL                                      0          
    5     7        NEW                                              $6      'DateTime'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
    7    10        IS_SMALLER                                               !1, !0
         11      > JMPZ                                                     ~9, ->14
         12    >   QM_ASSIGN                                        ~10     'less+than+2+hours'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~10     'more+than+2+hours'
         15    >   ECHO                                                     ~10
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.22 ms | 1007 KiB | 13 Q