3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = new DateTime(); echo $date_now(); $date2 = new DateTime("01/02/2016"); if ($date_now > $date2) { echo 'greater than'; }else{ echo 'Less than'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBZkD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $date_now, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0  $5      
          5        ECHO                                                     $5
    4     6        NEW                                              $6      'DateTime'
          7        SEND_VAL_EX                                              '01%2F02%2F2016'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
    6    10        IS_SMALLER                                               !1, !0
         11      > JMPZ                                                     ~9, ->14
    7    12    >   ECHO                                                     'greater+than'
         13      > JMP                                                      ->15
    9    14    >   ECHO                                                     'Less+than'
   10    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.09 ms | 938 KiB | 14 Q