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'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/T3d23
function name:  (null)
number of ops:  12
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, ->11
    7    10    >   ECHO                                                     'needs+previous'
    8    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1384 KiB | 13 Q