3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Try to create the datetime instance if ($date = date_create_from_format('d_m_Y_H_i_s', '29_11_2016_5_00_15')) { echo date_format($date, 'Y-m-d'); } else { // It failed! Errors found, let's figure out what! echo "<pre>"; print_r(date_get_last_errors()); echo "</pre>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6om9g
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date_create_from_format'
          1        SEND_VAL                                                 'd_m_Y_H_i_s'
          2        SEND_VAL                                                 '29_11_2016_5_00_15'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                           ~2      !0, $1
          5      > JMPZ                                                     ~2, ->12
    5     6    >   INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'Y-m-d'
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    4    11      > JMP                                                      ->19
    8    12    >   ECHO                                                     '%3Cpre%3E'
    9    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'date_get_last_errors'
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   10    18        ECHO                                                     '%3C%2Fpre%3E'
   11    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.99 ms | 1000 KiB | 17 Q