3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "20181011000000GMT+0800"; $dt = DateTime::createFromFormat('YmdHisO+', $string); echo $dt->format('c');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kDorn
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $dt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '20181011000000GMT%2B0800'
    4     1        INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          2        SEND_VAL                                                     'YmdHisO%2B'
          3        SEND_VAR                                                     !0
          4        DO_FCALL                                          0  $3      
          5        ASSIGN                                                       !1, $3
    6     6        INIT_METHOD_CALL                                             !1, 'format'
          7        SEND_VAL_EX                                                  'c'
          8        DO_FCALL                                          0  $5      
          9        ECHO                                                         $5
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
221.52 ms | 2209 KiB | 13 Q