3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movedInDt = new DateTime('1st December 2011'); $threeYearsAgoDt = new DateTime('-3 years'); if ($movedInDt <= $threeYearsAgoDt) { echo 'needs previous'; } else { echo 'nope'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5fDFT
function name:  (null)
number of ops:  14
compiled vars:  !0 = $movedInDt, !1 = $threeYearsAgoDt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '1st+December+2011'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '-3+years'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        IS_SMALLER_OR_EQUAL                                      !0, !1
          9      > JMPZ                                                     ~8, ->12
    7    10    >   ECHO                                                     'needs+previous'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'nope'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.47 ms | 1384 KiB | 13 Q