3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.53 ms | 1395 KiB | 17 Q