3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime('2015-10-28T08:22:20.458Z'); $date = new \DateTime(); $date-setTimestamp($time); echo $date->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/4HmvZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $time, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2015-10-28T08%3A22%3A20.458Z'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        NEW                                              $4      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL_BY_NAME                                       'setTimestamp'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $7      
         10        SUB                                              ~8      !1, $7
         11        FREE                                                     ~8
    7    12        INIT_METHOD_CALL                                         !1, 'format'
         13        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         14        DO_FCALL                                      0  $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.05 ms | 1394 KiB | 15 Q