3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(strtotime("now"), new DateTimeZone('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 = 25, Position 2 = 30
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IYaeQ
function name:  (null)
number of ops:  34
compiled vars:  !0 = $date, !1 = $date_format, !2 = $dat, !3 = $che
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DateTime'
          1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 'now'
          3        DO_ICALL                                         $5      
          4        SEND_VAR_NO_REF_EX                                       $5
          5        NEW                                              $6      'DateTimeZone'
          6        SEND_VAL_EX                                              'Russia%2FMoscow'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $6
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $4
    3    11        CONCAT                                           ~10     'date+%3D+', !0
         12        CONCAT                                           ~11     ~10, '%0A'
         13        ECHO                                                     ~11
    4    14        ASSIGN                                                   !1, 'd.m.Y'
    7    15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'now'
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !2, $13
    8    19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '31.05.2013+23%3A59%3A59'
         21        DO_ICALL                                         $15     
         22        ASSIGN                                                   !3, $15
    9    23        IS_SMALLER_OR_EQUAL                                      !3, !2
         24      > JMPZ                                                     ~17, ->30
   11    25    >   CONCAT                                           ~18     !2, '+%3E%3D+'
         26        CONCAT                                           ~19     ~18, !3
         27        CONCAT                                           ~20     ~19, '+%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'
         28        ECHO                                                     ~20
         29      > JMP                                                      ->33
   13    30    >   CONCAT                                           ~21     !2, '+%3C+'
         31        CONCAT                                           ~22     ~21, !3
         32        ECHO                                                     ~22
   14    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.61 ms | 1401 KiB | 15 Q