3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shift = array(); $format = 'Y-m-d H:i:s'; $shift['start'] = DateTime::createFromFormat($format, date('Y-m-d') . ' 6:00:00', new DateTimeZone("Asia/Tokyo")); var_dump($shift);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKcpF
function name:  (null)
number of ops:  20
compiled vars:  !0 = $shift, !1 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'Y-m-d+H%3Ai%3As'
    6     2        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          3        SEND_VAR                                                 !1
          4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d'
          6        DO_ICALL                                         $5      
          7        CONCAT                                           ~6      $5, '+6%3A00%3A00'
          8        SEND_VAL                                                 ~6
          9        NEW                                              $7      'DateTimeZone'
         10        SEND_VAL_EX                                              'Asia%2FTokyo'
         11        DO_FCALL                                      0          
         12        SEND_VAR                                                 $7
         13        DO_FCALL                                      0  $9      
         14        ASSIGN_DIM                                               !0, 'start'
         15        OP_DATA                                                  $9
    8    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.69 ms | 1395 KiB | 17 Q