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, '2009-02-15 15:16:17'); echo date_format($date, $format); $date2 = date('Y-m-d H:i:s'); if($date2 < $date){ echo ' --- YESSS --- '; echo $date2; } else{ echo ' --- NO'; } //end ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FQat6
function name:  (null)
number of ops:  22
compiled vars:  !0 = $format, !1 = $date, !2 = $date2
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                                                 '2009-02-15+15%3A16%3A17'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   11     6        INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
   13    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
   15    15        IS_SMALLER                                               !2, !1
         16      > JMPZ                                                     ~9, ->20
   16    17    >   ECHO                                                     '+---+YESSS+---+'
   17    18        ECHO                                                     !2
         19      > JMP                                                      ->21
   20    20    >   ECHO                                                     '+---+NO'
   25    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.58 ms | 1395 KiB | 19 Q