3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dat = new DateTime(); $date_format = "d.m.Y H:i:s"; $dat = $dat->format($date_format); $che = date($date_format, strtotime('31.05.2013 23:59:59')); echo $dat.'<br>'; echo $che; if($dat > $che) { echo($dat.' > '.$che); }else{ echo($dat.' < '.$che); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K8ODr
function name:  (null)
number of ops:  29
compiled vars:  !0 = $dat, !1 = $date_format, !2 = $che
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 'd.m.Y+H%3Ai%3As'
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !0, $7
    5     8        INIT_FCALL                                               'date'
          9        SEND_VAR                                                 !1
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '31.05.2013+23%3A59%3A59'
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !2, $10
    6    16        CONCAT                                           ~12     !0, '%3Cbr%3E'
         17        ECHO                                                     ~12
    7    18        ECHO                                                     !2
    8    19        IS_SMALLER                                               !2, !0
         20      > JMPZ                                                     ~13, ->25
   10    21    >   CONCAT                                           ~14     !0, '+%3E+'
         22        CONCAT                                           ~15     ~14, !2
         23        ECHO                                                     ~15
         24      > JMP                                                      ->28
   12    25    >   CONCAT                                           ~16     !0, '+%3C+'
         26        CONCAT                                           ~17     ~16, !2
         27        ECHO                                                     ~17
   13    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.64 ms | 1396 KiB | 17 Q