3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '27.11.1966'; //$bdate = DateTime::createFromFormat('m.d.Y', $value); //$bdate = date_format(date_create($value), "d.m.Y"); //$dateTime = DateTime::createFromFormat('m/d/Y', $date); if (date_create($value) === false) { echo date_format(date_create($value), "d.m.Y"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/KMGu4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '27.11.1966'
    8     1        INIT_FCALL                                               'date_create'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        TYPE_CHECK                                    4          $2
          5      > JMPZ                                                     ~3, ->14
    9     6    >   INIT_FCALL                                               'date_format'
          7        INIT_FCALL                                               'date_create'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        SEND_VAL                                                 'd.m.Y'
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
   13    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.27 ms | 1394 KiB | 17 Q