3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.5 ms | 1394 KiB | 15 Q