3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Moscow'); //$date = new DateTime(strtotime("now"), 'Russia/Moscow'); //echo('date = '.$date."\n"); $date_format = "d.m.Y"; //$dat = $dat->format($date_format); $dat = strtotime('now'); $che = strtotime('31.05.2013 23:59:59'); 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 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDVN6
function name:  (null)
number of ops:  23
compiled vars:  !0 = $date_format, !1 = $dat, !2 = $che
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FMoscow'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 'd.m.Y'
    8     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'now'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    9     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '31.05.2013+23%3A59%3A59'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
   10    12        IS_SMALLER_OR_EQUAL                                      !2, !1
         13      > JMPZ                                                     ~9, ->19
   12    14    >   CONCAT                                           ~10     !1, '+%3E%3D+'
         15        CONCAT                                           ~11     ~10, !2
         16        CONCAT                                           ~12     ~11, '+%D0%BC%D0%B5%D0%BD%D1%8F%D0%B5%D0%BC+%D0%B1%D0%B0%D0%BD%D0%BD%D0%B5%D1%80%D1%8B'
         17        ECHO                                                     ~12
         18      > JMP                                                      ->22
   14    19    >   CONCAT                                           ~13     !1, '+%3C+'
         20        CONCAT                                           ~14     ~13, !2
         21        ECHO                                                     ~14
   15    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.26 ms | 1387 KiB | 17 Q