3v4l.org

run code in 300+ PHP versions simultaneously
<?php //************** 2017 ************** //SasanicA, Inc. //********************************** $format = 'Y-m-d H:i:s'; $date = date_create_from_format($format, '2018-06-01 18:06:47'); //echo date_format($date, $format); $date_now = datetime($format); if($date_now < $date){ echo ' --- YESSS --- '; echo $date_now; }else{ echo ' --- NO'; } //end ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4RPR3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $format, !1 = $date, !2 = $date_now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Y-m-d+H%3Ai%3As'
    9     1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2018-06-01+18%3A06%3A47'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   13     6        INIT_FCALL_BY_NAME                                       'datetime'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !2, $6
   15    10        IS_SMALLER                                               !2, !1
         11      > JMPZ                                                     ~8, ->15
   16    12    >   ECHO                                                     '+---+YESSS+---+'
   17    13        ECHO                                                     !2
         14      > JMP                                                      ->16
   19    15    >   ECHO                                                     '+---+NO'
   24    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.4 ms | 1395 KiB | 15 Q