3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $active_day = new DateTime('2014-11-18'); if (diff($active_day,$now) == 0) echo "SAME DAY!!";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/CoiFN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $now, !1 = $active_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        NEW                                              $5      'DateTime'
          4        SEND_VAL_EX                                              '2014-11-18'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    6     7        INIT_FCALL_BY_NAME                                       'diff'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $8      
         11        IS_EQUAL                                                 $8, 0
         12      > JMPZ                                                     ~9, ->14
         13    >   ECHO                                                     'SAME+DAY%21%21'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.79 ms | 1393 KiB | 13 Q