3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Karachi'); $opensrs_currentexpirationyear = date('Y', strtotime("2015-04-22 02:53:05")); $db_currentexpirationyear = date('Y', strtotime("2014-04-22 02:53:05")); if ($opensrs_currentexpirationyear == $db_currentexpirationyear) { echo "Year is Equal"; } else { echo "Year is NOT Equal"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TQVbh
function name:  (null)
number of ops:  25
compiled vars:  !0 = $opensrs_currentexpirationyear, !1 = $db_currentexpirationyear
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Asia%2FKarachi'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y'
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '2015-04-22+02%3A53%3A05'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    4    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '2014-04-22+02%3A53%3A05'
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
    5    19        IS_EQUAL                                                 !0, !1
         20      > JMPZ                                                     ~9, ->23
    7    21    >   ECHO                                                     'Year+is+Equal'
         22      > JMP                                                      ->24
    9    23    >   ECHO                                                     'Year+is+NOT+Equal'
   11    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1387 KiB | 19 Q