3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = '10/10/2015'; $obj = new DateTime($start, new DateTimeZone('US/Mountain')); var_dump($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6bqh0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $start, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '10%2F10%2F2015'
    3     1        NEW                                              $3      'DateTime'
          2        SEND_VAR_EX                                              !0
          3        NEW                                              $4      'DateTimeZone'
          4        SEND_VAL_EX                                              'US%2FMountain'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $3
    4     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.23 ms | 1394 KiB | 15 Q