3v4l.org

run code in 300+ PHP versions simultaneously
<?php $googleDate = '2019-10-21T02:24:29.353Z'; $date = DateTime::createFromFormat(\DateTime::RFC3339_EXTENDED, $googleDate); $errors = DateTime::getLastErrors(); var_dump($date); if (!empty($errors['errors'])){ var_dump($errors); };
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/4nMi4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $googleDate, !1 = $date, !2 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2019-10-21T02%3A24%3A29.353Z'
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As.vP'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_STATIC_METHOD_CALL                                  'DateTime', 'getLastErrors'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    8    12        ISSET_ISEMPTY_DIM_OBJ                         1  ~9      !2, 'errors'
         13        BOOL_NOT                                         ~10     ~9
         14      > JMPZ                                                     ~10, ->18
         15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.53 ms | 1386 KiB | 15 Q