3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'd.m.Y H:i:s D l S z F M n y H u e T'; $value = '13.08.2015 17:08:23 Thu Thursday th 224 August Aug 8 15 17 432563 UTC UTC'; $dateTime = \DateTime::createFromFormat($format, $value); echo $dateTime->getTimestamp() . "\n"; echo $dateTime->format($format);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i0hnd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $format, !1 = $value, !2 = $dateTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'd.m.Y+H%3Ai%3As+D+l+S+z+F+M+n+y+H+u+e+T'
    4     1        ASSIGN                                                   !1, '13.08.2015+17%3A08%3A23+Thu+Thursday+th+224+August+Aug+8+15+17+432563+UTC+UTC'
    5     2        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_METHOD_CALL                                         !2, 'getTimestamp'
          8        DO_FCALL                                      0  $7      
          9        CONCAT                                           ~8      $7, '%0A'
         10        ECHO                                                     ~8
    8    11        INIT_METHOD_CALL                                         !2, 'format'
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0  $9      
         14        ECHO                                                     $9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.56 ms | 1447 KiB | 13 Q