3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = 'Sun Jan 01 2017 00:00:00 GMT+0100 (Central European Standard Time)'; $carbon = \DateTime::createFromFormat('D M d Y H:i:s e+', $date); print_r($carbon->format('c'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rnen7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $date, !1 = $carbon
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Sun+Jan+01+2017+00%3A00%3A00+GMT%2B0100+%28Central+European+Standard+Time%29'
    3     1        INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          2        SEND_VAL                                                     'D+M+d+Y+H%3Ai%3As+e%2B'
          3        SEND_VAR                                                     !0
          4        DO_FCALL                                          0  $3      
          5        ASSIGN                                                       !1, $3
    5     6        INIT_FCALL                                                   'print_r'
          7        INIT_METHOD_CALL                                             !1, 'format'
          8        SEND_VAL_EX                                                  'c'
          9        DO_FCALL                                          0  $5      
         10        SEND_VAR                                                     $5
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.7 ms | 2580 KiB | 14 Q