3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.3 ms | 1396 KiB | 17 Q