3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastWeek = new DateTime('monday last week'); $yesterday = new DateTime('1 day ago'); $tomorrow = new DateTime('+ 1 days'); $epoch = new DateTime('1970-01-01 00:00:00'); if ($yesterday > $epoch && $tomorrow > $yesterday && $lastWeek < $tomorrow) { echo "I rule!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 23
Branch analysis from position: 20
filename:       /in/d9bFQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $lastWeek, !1 = $yesterday, !2 = $tomorrow, !3 = $epoch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DateTime'
          1        SEND_VAL_EX                                              'monday+last+week'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    3     4        NEW                                              $7      'DateTime'
          5        SEND_VAL_EX                                              '1+day+ago'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    4     8        NEW                                              $10     'DateTime'
          9        SEND_VAL_EX                                              '%2B+1+days'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $10
    5    12        NEW                                              $13     'DateTime'
         13        SEND_VAL_EX                                              '1970-01-01+00%3A00%3A00'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !3, $13
    7    16        IS_SMALLER                                       ~16     !3, !1
         17      > JMPZ_EX                                          ~16     ~16, ->20
         18    >   IS_SMALLER                                       ~17     !1, !2
         19        BOOL                                             ~16     ~17
         20    > > JMPZ_EX                                          ~16     ~16, ->23
         21    >   IS_SMALLER                                       ~18     !0, !2
         22        BOOL                                             ~16     ~18
         23    > > JMPZ                                                     ~16, ->25
    8    24    >   ECHO                                                     'I+rule%21'
    9    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.16 ms | 1394 KiB | 13 Q