3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = substr('20190630175050Z', 0, -1); echo gmdate((new DateTime($timestamp))->format('d-m-Y H:i:s'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n5c0O
function name:  (null)
number of ops:  17
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr'
          1        SEND_VAL                                                 '20190630175050Z'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 -1
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'gmdate'
          7        NEW                                              $3      'DateTime'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        INIT_METHOD_CALL                                         $3, 'format'
         11        SEND_VAL_EX                                              'd-m-Y+H%3Ai%3As'
         12        DO_FCALL                                      0  $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.61 ms | 1398 KiB | 17 Q