3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_datetime = new Datetime(); $timer = new Datetime("2017/06/26"); if ($timer < $current_datetime) { var_dump("Y"); }else{ var_dump("N"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S5iqQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $current_datetime, !1 = $timer
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                                              '2017%2F06%2F26'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    5     7        IS_SMALLER                                               !1, !0
          8      > JMPZ                                                     ~8, ->13
    6     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 'Y'
         11        DO_ICALL                                                 
         12      > JMP                                                      ->16
    8    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAL                                                 'N'
         15        DO_ICALL                                                 
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.23 ms | 1395 KiB | 15 Q