3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_string = 'Fri Mar 29 2019 09:00:00 GMT-0700 (Pacific Daylight Time)'; $date = date_create_from_format('D M d Y H:i:s \G\M\TO+', $date_string); 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/sIUOb
function name:  (null)
number of ops:  11
compiled vars:  !0 = $date_string, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Fri+Mar+29+2019+09%3A00%3A00+GMT-0700+%28Pacific+Daylight+Time%29'
    4     1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAL                                                 'D+M+d+Y+H%3Ai%3As+%5CG%5CM%5CTO%2B'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_METHOD_CALL                                         !1, 'format'
          7        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.06 ms | 1394 KiB | 15 Q