3v4l.org

run code in 300+ PHP versions simultaneously
<?php $freshdate = '09/07/2015 (Mon)'; $date = DateTime::createFromFormat("m/d/Y (D)", $freshdate); if (!$date) { var_dump('error', DateTime::getLastErrors()); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/tf473
function name:  (null)
number of ops:  15
compiled vars:  !0 = $freshdate, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '09%2F07%2F2015+%28Mon%29'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'm%2Fd%2FY+%28D%29'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    5     6        BOOL_NOT                                         ~5      !1
          7      > JMPZ                                                     ~5, ->14
    6     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 'error'
         10        INIT_STATIC_METHOD_CALL                                  'DateTime', 'getLastErrors'
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    7    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.62 ms | 1394 KiB | 15 Q