3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1394 KiB | 19 Q