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 ($bdate = date_create($value) != false) { echo date_format($bdate, "d.m.Y"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/2o69m
function name:  (null)
number of ops:  13
compiled vars:  !0 = $value, !1 = $bdate
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                                         $3      
          4        BOOL                                             ~4      $3
          5        ASSIGN                                           ~5      !1, ~4
          6      > JMPZ                                                     ~5, ->12
    9     7    >   INIT_FCALL                                               'date_format'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'd.m.Y'
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
   13    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1398 KiB | 17 Q