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)."\n"; 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/EkFk3
function name:  (null)
number of ops:  23
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        CONCAT                                           ~10     $9, '%0A'
         17        ECHO                                                     ~10
    9    18        INIT_METHOD_CALL                                         !1, 'format'
         19        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         20        DO_FCALL                                      0  $11     
         21        ECHO                                                     $11
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.85 ms | 1395 KiB | 19 Q