3v4l.org

run code in 300+ PHP versions simultaneously
<?php $account = []; $account['timezone_name'] = 'Europe/Brussels'; $todayStart = new \DateTime('today 0:00', isset($account['timezone_name']) ? new \DateTimeZone($account['timezone_name']) : null); var_dump($todayStart); var_dump($todayStart->getTimestamp());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vSVtD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $account, !1 = $todayStart
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'timezone_name'
          2        OP_DATA                                                  'Europe%2FBrussels'
    4     3        NEW                                              $4      'DateTime'
          4        SEND_VAL_EX                                              'today+0%3A00'
          5        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'timezone_name'
          6      > JMPZ                                                     ~5, ->14
          7    >   NEW                                              $6      'DateTimeZone'
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $7      !0, 'timezone_name'
         10        SEND_FUNC_ARG                                            $7
         11        DO_FCALL                                      0          
         12        QM_ASSIGN                                        ~9      $6
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~9      null
         15    >   SEND_VAL_EX                                              ~9
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !1, $4
    5    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'var_dump'
         22        INIT_METHOD_CALL                                         !1, 'getTimestamp'
         23        DO_FCALL                                      0  $13     
         24        SEND_VAR                                                 $13
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.45 ms | 1395 KiB | 15 Q