3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldTimestamp = strtotime("2014-02-01 19:30:00"); $newTimestamp = strtotime('-2 day', $oldTimestamp); if(time()> $newTimestamp) echo "inschrijving gesloten"; else echo "inschrijving open";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lEdk3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $oldTimestamp, !1 = $newTimestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-02-01+19%3A30%3A00'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '-2+day'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $6      
         11        IS_SMALLER                                               !1, $6
         12      > JMPZ                                                     ~7, ->15
    7    13    >   ECHO                                                     'inschrijving+gesloten'
         14      > JMP                                                      ->16
    9    15    >   ECHO                                                     'inschrijving+open'
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 1386 KiB | 17 Q