3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Berlin'); $date_now = date('Y-m-d'); $now = strtotime($date_now); $exp_date = strtotime("2016-02-01"); if ($exp_date<$now){ echo "expired"; }else{ echo "still ok"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FvZGr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date_now, !1 = $now, !2 = $exp_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBerlin'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    6    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '2016-02-01'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
    7    15        IS_SMALLER                                               !2, !1
         16      > JMPZ                                                     ~10, ->19
    8    17    >   ECHO                                                     'expired'
         18      > JMP                                                      ->20
   10    19    >   ECHO                                                     'still+ok'
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.75 ms | 1395 KiB | 19 Q