3v4l.org

run code in 300+ PHP versions simultaneously
<?php $UTC = new DateTimeZone("UTC"); $newTZ = new DateTimeZone("America/New_York"); $d = new DateTime('20100510133046.0Z'); echo $d->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/loAi1
function name:  (null)
number of ops:  17
compiled vars:  !0 = $UTC, !1 = $newTZ, !2 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTimeZone'
          1        SEND_VAL_EX                                              'UTC'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        NEW                                              $6      'DateTimeZone'
          5        SEND_VAL_EX                                              'America%2FNew_York'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    4     8        NEW                                              $9      'DateTime'
          9        SEND_VAL_EX                                              '20100510133046.0Z'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $9
    5    12        INIT_METHOD_CALL                                         !2, 'format'
         13        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         14        DO_FCALL                                      0  $12     
         15        ECHO                                                     $12
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.27 ms | 1393 KiB | 13 Q