3v4l.org

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

Function vacancy_expire:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6OdgX
function name:  vacancy_expire
number of ops:  18
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                                               'time'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !2, $4
    8     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
   10    12        IS_SMALLER                                               !1, !2
         13      > JMPZ                                                     ~8, ->16
   11    14    >   ECHO                                                     '1'
         15      > JMP                                                      ->17
   13    16    >   ECHO                                                     '0'
   15    17    > > RETURN                                                   null

End of function vacancy_expire

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.77 ms | 1398 KiB | 20 Q