3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datestart = "2012-03-06"; $datenow = date("$datestart H:i:s", current_time( 'timestamp' )); $newpostdate1 = $datenow + strtotime("0 years 0 months 1 days 0 hours 0 minutes 0 seconds"); $newpostdate = date("Y-m-d H:i:s", $newpostdate1); echo $datenow . " " . $newpostdate;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MAir9
function name:  (null)
number of ops:  25
compiled vars:  !0 = $datestart, !1 = $datenow, !2 = $newpostdate1, !3 = $newpostdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2012-03-06'
    3     1        INIT_FCALL                                               'date'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~5      !0, '+H%3Ai%3As'
          4        SEND_VAL                                                 ~5
          5        INIT_FCALL_BY_NAME                                       'current_time'
          6        SEND_VAL_EX                                              'timestamp'
          7        DO_FCALL                                      0  $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    5    11        INIT_FCALL                                               'strtotime'
         12        SEND_VAL                                                 '0+years+0+months+1+days+0+hours+0+minutes+0+seconds'
         13        DO_ICALL                                         $9      
         14        ADD                                              ~10     !1, $9
         15        ASSIGN                                                   !2, ~10
    6    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $12     
         20        ASSIGN                                                   !3, $12
    8    21        CONCAT                                           ~14     !1, '+++'
         22        CONCAT                                           ~15     ~14, !3
         23        ECHO                                                     ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.76 ms | 1395 KiB | 17 Q