3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(DateTime::createFromFormat('Y-m', '2022-13')->format(DateTime::ATOM)); var_dump(DateTime::getLastErrors());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M0e0l
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          2        SEND_VAL                                                     'Y-m'
          3        SEND_VAL                                                     '2022-13'
          4        DO_FCALL                                          0  $0      
          5        INIT_METHOD_CALL                                             $0, 'format'
          6        SEND_VAL_EX                                                  'Y-m-d%5CTH%3Ai%3AsP'
          7        DO_FCALL                                          0  $1      
          8        SEND_VAR                                                     $1
          9        DO_ICALL                                                     
    4    10        INIT_FCALL                                                   'var_dump'
         11        INIT_STATIC_METHOD_CALL                                      'DateTime', 'getLastErrors'
         12        DO_FCALL                                          0  $3      
         13        SEND_VAR                                                     $3
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
206.89 ms | 1931 KiB | 14 Q