3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = FALSE; $now = date('Y-m-d'); $disco_date = "2015-01-01"; $disco_date = date_create($disco_date); echo date_format($disco_date,"Y-m-d"); date_add($disco_date,date_interval_create_from_date_string("60 days")); echo date_format($disco_date,"Y-m-d"); if($disco_date >= $now) echo $disco_date; else echo $now;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJYJV
function name:  (null)
number of ops:  33
compiled vars:  !0 = $date, !1 = $now, !2 = $disco_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, '2015-01-01'
    6     6        INIT_FCALL                                               'date_create'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    7    10        INIT_FCALL                                               'date_format'
         11        SEND_VAR                                                 !2
         12        SEND_VAL                                                 'Y-m-d'
         13        DO_ICALL                                         $9      
         14        ECHO                                                     $9
    8    15        INIT_FCALL                                               'date_add'
         16        SEND_VAR                                                 !2
         17        INIT_FCALL                                               'date_interval_create_from_date_string'
         18        SEND_VAL                                                 '60+days'
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'date_format'
         23        SEND_VAR                                                 !2
         24        SEND_VAL                                                 'Y-m-d'
         25        DO_ICALL                                         $12     
         26        ECHO                                                     $12
   12    27        IS_SMALLER_OR_EQUAL                                      !1, !2
         28      > JMPZ                                                     ~13, ->31
   13    29    >   ECHO                                                     !2
         30      > JMP                                                      ->32
   15    31    >   ECHO                                                     !1
         32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.15 ms | 1401 KiB | 23 Q