3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = '2020-03-30' >= date("Y-m-d",strtotime("-1 week")) ? 'Yes' : 'No'; echo $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cUgh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '-1+week'
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        IS_SMALLER_OR_EQUAL                                      $2, '2020-03-30'
          8      > JMPZ                                                     ~3, ->11
          9    >   QM_ASSIGN                                        ~4      'Yes'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~4      'No'
         12    >   ASSIGN                                                   !0, ~4
    4    13        ECHO                                                     !0
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.03 ms | 1459 KiB | 15 Q