3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Paris'); $ts = strtotime('tomorrow midnight') - 1; $date = new \DateTime('tomorrow midnight'); echo date('Y-m-d H:i:s',$ts); echo $date->format('Y-m-d H:i:s');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gN0pK
function name:  (null)
number of ops:  22
compiled vars:  !0 = $ts, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FParis'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'tomorrow+midnight'
          5        DO_ICALL                                         $3      
          6        SUB                                              ~4      $3, 1
          7        ASSIGN                                                   !0, ~4
    6     8        NEW                                              $6      'DateTime'
          9        SEND_VAL_EX                                              'tomorrow+midnight'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $6
    8    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
    9    17        INIT_METHOD_CALL                                         !1, 'format'
         18        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         19        DO_FCALL                                      0  $10     
         20        ECHO                                                     $10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 1395 KiB | 19 Q