3v4l.org

run code in 300+ PHP versions simultaneously
<?php function vacancy_expire($id, $close_date){ date_default_timezone_set("Pacific/Fiji"); $today = strtotime("2014-04-30 04:04"); $close_date = strtotime("2014-04-30 16:00"); if( $today > $close_date ){ echo "1"; } else { echo "0"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0LSel
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function vacancy_expire:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0LSel
function name:  vacancy_expire
number of ops:  19
compiled vars:  !0 = $id, !1 = $close_date, !2 = $today
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'date_default_timezone_set'
          3        SEND_VAL                                                 'Pacific%2FFiji'
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAL                                                 '2014-04-30+04%3A04'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !2, $4
    7     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 '2014-04-30+16%3A00'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    8    13        IS_SMALLER                                               !1, !2
         14      > JMPZ                                                     ~8, ->17
    9    15    >   ECHO                                                     '1'
         16      > JMP                                                      ->18
   11    17    >   ECHO                                                     '0'
   13    18    > > RETURN                                                   null

End of function vacancy_expire

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.02 ms | 1395 KiB | 17 Q