3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('Y-m-d', time()); $dateComparison = ($today > '2017-07-19') ? 'Date is past' : 'Date is ahead'; echo $dateComparison;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P6LVs
function name:  (null)
number of ops:  15
compiled vars:  !0 = $today, !1 = $dateComparison
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'time'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        IS_SMALLER                                               '2017-07-19', !0
          8      > JMPZ                                                     ~5, ->11
          9    >   QM_ASSIGN                                        ~6      'Date+is+past'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~6      'Date+is+ahead'
         12    >   ASSIGN                                                   !1, ~6
    5    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1394 KiB | 17 Q