3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime1 = date_create('2009-10-11'); $datetime2 = date_create('2009-10-13'); $interval = date_diff($datetime1, $datetime2); if($interval->format('%R%a')>=1) echo "more than 1 day ago";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/q3BWZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $datetime1, !1 = $datetime2, !2 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_create'
          1        SEND_VAL                                                 '2009-10-11'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'date_create'
          5        SEND_VAL                                                 '2009-10-13'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'date_diff'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    5    13        INIT_METHOD_CALL                                         !2, 'format'
         14        SEND_VAL_EX                                              '%25R%25a'
         15        DO_FCALL                                      0  $9      
         16        IS_SMALLER_OR_EQUAL                                      1, $9
         17      > JMPZ                                                     ~10, ->19
         18    >   ECHO                                                     'more+than+1+day+ago'
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.3 ms | 1395 KiB | 17 Q