3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = DateTime::createFromFormat('m-d-Y', '0fds7'); $d2 = DateTime::createFromFormat('m-d-Y', '1-17-2017'); var_dump($d, $d2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xp2sr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'm-d-Y'
          2        SEND_VAL                                                 '0fds7'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          6        SEND_VAL                                                 'm-d-Y'
          7        SEND_VAL                                                 '1-17-2017'
          8        DO_FCALL                                      0  $4      
          9        ASSIGN                                                   !1, $4
    5    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.74 ms | 1394 KiB | 15 Q