3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = DateTime::createFromFormat('H:i', '08:00'); $date2 = new DateTime(); if ($date1 > $date2) { echo 'It is after 08:00'; } else { echo 'It is not after 08:00'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqGjN
function name:  (null)
number of ops:  14
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'H%3Ai'
          2        SEND_VAL                                                 '08%3A00'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        NEW                                              $4      'DateTime'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
    4     8        IS_SMALLER                                               !1, !0
          9      > JMPZ                                                     ~7, ->12
    6    10    >   ECHO                                                     'It+is+after+08%3A00'
    4    11      > JMP                                                      ->13
   10    12    >   ECHO                                                     'It+is+not+after+08%3A00'
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.21 ms | 1439 KiB | 13 Q