3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fromDate="2013-03-03"; $toDate="2013-03-11"; $fromDate = strtotime($fromDate); $toDate = strtotime($toDate); $diffDate = abs($toDate - $fromDate); echo $diffDateLast = round($diffDate / (60 * 60 * 24)); echo ">>>>>>>>".date("Y-m-d H:i:s"); echo ">>>>>>>>".date("Y-m-d",strtotime(date("Y-m-d",strtotime($toDate))." +1 day"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WnBSS
function name:  (null)
number of ops:  44
compiled vars:  !0 = $fromDate, !1 = $toDate, !2 = $diffDate, !3 = $diffDateLast
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2013-03-03'
    4     1        ASSIGN                                                   !1, '2013-03-11'
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !0, $6
    7     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !1, $8
    8    10        INIT_FCALL                                               'abs'
         11        SUB                                              ~10     !1, !0
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !2, $11
    9    15        INIT_FCALL                                               'round'
         16        DIV                                              ~13     !2, 86400
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN                                           ~15     !3, $14
         20        ECHO                                                     ~15
   10    21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         23        DO_ICALL                                         $16     
         24        CONCAT                                           ~17     '%3E%3E%3E%3E%3E%3E%3E%3E', $16
         25        ECHO                                                     ~17
   11    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'Y-m-d'
         28        INIT_FCALL                                               'strtotime'
         29        INIT_FCALL                                               'date'
         30        SEND_VAL                                                 'Y-m-d'
         31        INIT_FCALL                                               'strtotime'
         32        SEND_VAR                                                 !1
         33        DO_ICALL                                         $18     
         34        SEND_VAR                                                 $18
         35        DO_ICALL                                         $19     
         36        CONCAT                                           ~20     $19, '+%2B1+day'
         37        SEND_VAL                                                 ~20
         38        DO_ICALL                                         $21     
         39        SEND_VAR                                                 $21
         40        DO_ICALL                                         $22     
         41        CONCAT                                           ~23     '%3E%3E%3E%3E%3E%3E%3E%3E', $22
         42        ECHO                                                     ~23
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.32 ms | 1392 KiB | 21 Q