3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expires = new DateTime('07/08/2015 1:23PM', new DateTimeZone('America/New_York')); $current = new DateTime('now', new DateTimeZone('America/New_York')); if ($current > $expires) { $expired = true; } else { $expired = false; } var_dump($expired);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OX1eb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $expires, !1 = $current, !2 = $expired
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        SEND_VAL_EX                                              '07%2F08%2F2015+1%3A23PM'
          2        NEW                                              $4      'DateTimeZone'
          3        SEND_VAL_EX                                              'America%2FNew_York'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
    4     8        NEW                                              $8      'DateTime'
          9        SEND_VAL_EX                                              'now'
         10        NEW                                              $9      'DateTimeZone'
         11        SEND_VAL_EX                                              'America%2FNew_York'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $9
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $8
    6    16        IS_SMALLER                                               !0, !1
         17      > JMPZ                                                     ~13, ->20
    7    18    >   ASSIGN                                                   !2, <true>
         19      > JMP                                                      ->21
    9    20    >   ASSIGN                                                   !2, <false>
   12    21    >   INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1395 KiB | 15 Q