3v4l.org

run code in 300+ PHP versions simultaneously
<?php // echo date( "Y-m-d", strtotime( "2009-12-01 -1 day" ) ).' 23:59:59'; $dateTo = strtotime(date('Y-m-d', strtotime('-1 day', date_create('2017-12-01 04:00:00')->getTimestamp())) ." 23:59:59"); echo gmdate("Y-m-d H:i:s", $dateTo);; $dateTo = strtotime(date('Y-m-d', strtotime('-1 day')) ." 23:59:59"); echo gmdate("Y-m-d H:i:s", 1464739200);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2lh15
function name:  (null)
number of ops:  41
compiled vars:  !0 = $dateTo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'strtotime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '-1+day'
          5        INIT_FCALL                                               'date_create'
          6        SEND_VAL                                                 '2017-12-01+04%3A00%3A00'
          7        DO_ICALL                                         $1      
          8        INIT_METHOD_CALL                                         $1, 'getTimestamp'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        CONCAT                                           ~5      $4, '+23%3A59%3A59'
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                         $6      
         17        ASSIGN                                                   !0, $6
    5    18        INIT_FCALL                                               'gmdate'
         19        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $8      
         22        ECHO                                                     $8
    6    23        INIT_FCALL                                               'strtotime'
         24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d'
         26        INIT_FCALL                                               'strtotime'
         27        SEND_VAL                                                 '-1+day'
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                         $10     
         31        CONCAT                                           ~11     $10, '+23%3A59%3A59'
         32        SEND_VAL                                                 ~11
         33        DO_ICALL                                         $12     
         34        ASSIGN                                                   !0, $12
    7    35        INIT_FCALL                                               'gmdate'
         36        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         37        SEND_VAL                                                 1464739200
         38        DO_ICALL                                         $14     
         39        ECHO                                                     $14
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.94 ms | 1396 KiB | 21 Q