3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sdate = "2014-01-02"; $edate = "2013-09-04"; $t=strtotime($edate); print "$t"; /*$date_diff = abs(strtotime($edate) - strtotime($sdate)); print "$date_diff"; $years = floor($date_diff / (365*60*60*24)); $months = floor(($date_diff - $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($date_diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); printf("%d years, %d months, %d days", $years, $months, $days);*/ ?> - See more at: http://www.w3resource.com/php-exercises/php-date-exercises.php#sthash.xJA52BEw.dpuf
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eoLGl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sdate, !1 = $edate, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2014-01-02'
    3     1        ASSIGN                                                   !1, '2013-09-04'
    4     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !2, $5
    5     6        CAST                                          6  ~7      !2
          7        ECHO                                                     ~7
   15     8        ECHO                                                     '++%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-date-exercises.php%23sthash.xJA52BEw.dpuf'
   16     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.04 ms | 1394 KiB | 15 Q