3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eastern = new \DateTimeZone( 'America/New_York' ); $time = new \DateTime( 'now', $eastern ); $ad_active_time_start = new \DateTime( 'December 18, 2015 9:00am', $eastern ); $ad_active_time_end = new \DateTime( 'December 19, 2015 10:00am', $eastern ); var_dump( $time > $ad_active_time_start ); var_dump( $ad_active_time_end > $ad_active_time_start ); echo $ad_active_time_end - $ad_active_time_start;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kb3T9
function name:  (null)
number of ops:  30
compiled vars:  !0 = $eastern, !1 = $time, !2 = $ad_active_time_start, !3 = $ad_active_time_end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DateTimeZone'
          1        SEND_VAL_EX                                              'America%2FNew_York'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $7      'DateTime'
          5        SEND_VAL_EX                                              'now'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
    5     9        NEW                                              $10     'DateTime'
         10        SEND_VAL_EX                                              'December+18%2C+2015+9%3A00am'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !2, $10
    6    14        NEW                                              $13     'DateTime'
         15        SEND_VAL_EX                                              'December+19%2C+2015+10%3A00am'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !3, $13
    7    19        INIT_FCALL                                               'var_dump'
         20        IS_SMALLER                                       ~16     !2, !1
         21        SEND_VAL                                                 ~16
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'var_dump'
         24        IS_SMALLER                                       ~18     !2, !3
         25        SEND_VAL                                                 ~18
         26        DO_ICALL                                                 
    9    27        SUB                                              ~20     !3, !2
         28        ECHO                                                     ~20
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.46 ms | 1395 KiB | 15 Q