3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.43 ms | 1394 KiB | 19 Q