3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $phpdate = strtotime('-2 day'); echo PHP_EOL; $mysqldate = date('Y-m-d H:i:s', $phpdate); $phpdate = time(); echo $last_midnight = $now - ($now % (24*60*60)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tYgdX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $phpdate, !1 = $mysqldate, !2 = $last_midnight, !3 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '-2+day'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                           ~5      !0, $4
          4        ECHO                                                     ~5
    5     5        ECHO                                                     '%0A'
    6     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    9    11        INIT_FCALL                                               'time'
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !0, $8
   11    14        MOD                                              ~10     !3, 86400
         15        SUB                                              ~11     !3, ~10
         16        ASSIGN                                           ~12     !2, ~11
         17        ECHO                                                     ~12
   16    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1394 KiB | 19 Q