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 $disco_date; // date_add($disco_date,date_interval_create_from_date_string("60 days")); // echo date_format($disco_date,"Y-m-d"); // echo $bill_date . "\n"; // //$future = strtotime($bill_date +60 days); // $future = date_add($bill_date, strtotime('+ 60 days')); // //$future = date('Y-m-d', $future); // echo $future . "\n"; // echo "Which is the later date \n"; // if($date >= $now) // echo $date; // else // echo $now;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sEK4o
function name:  (null)
number of ops:  12
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        ECHO                                                     !2
   26    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.07 ms | 1394 KiB | 17 Q