3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = date("Y-m-d"); //$a = strtotime($a); echo $a; $b = strtotime($a)+strtotime("+1 day"); echo "\n"; echo date("Y-m-d",strtotime("+1 day",$a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QAB55
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        ECHO                                                     !0
    6     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '%2B1+day'
         10        DO_ICALL                                         $5      
         11        ADD                                              ~6      $4, $5
         12        ASSIGN                                                   !1, ~6
    7    13        ECHO                                                     '%0A'
    8    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'Y-m-d'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '%2B1+day'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        ECHO                                                     $9
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.45 ms | 940 KiB | 18 Q