3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result =\DateTime::createFromFormat('Y-m-d\TH:i:s.????', '2016-01-26T19:00:00.000Z', 'UTC'); var_dump($result); var_dump(\DateTime::getLastErrors());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuLAc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'Y-m-d%5CTH%3Ai%3As.%3F%3F%3F%3F'
          2        SEND_VAL                                                 '2016-01-26T19%3A00%3A00.000Z'
          3        SEND_VAL                                                 'UTC'
          4        DO_FCALL                                      0  $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_STATIC_METHOD_CALL                                  'DateTime', 'getLastErrors'
         11        DO_FCALL                                      0  $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.47 ms | 1385 KiB | 15 Q