3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateString = 'Tue Oct 20 14:25:31 2015'; $format = 'D M d H:i:s Y'; $date = DateTime::createFromFormat($format, $dateString); var_dump($date->format('r'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bjpVR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dateString, !1 = $format, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Tue+Oct+20+14%3A25%3A31+2015'
    4     1        ASSIGN                                                   !1, 'D+M+d+H%3Ai%3As+Y'
    5     2        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !2, 'format'
          9        SEND_VAL_EX                                              'r'
         10        DO_FCALL                                      0  $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.82 ms | 1394 KiB | 15 Q