3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '27.11.1966'; if (!empty($value) || (strtotime($value) > 0) ) { $bdate = date_format(date_create($value), "d.m.Y"); echo $bdate; echo '<br>' . strtotime($value); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 24
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 9
filename:       /in/eKKIi
function name:  (null)
number of ops:  25
compiled vars:  !0 = $value, !1 = $bdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '27.11.1966'
    4     1        ISSET_ISEMPTY_CV                                 ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPNZ_EX                                         ~4      ~4, ->9
          4    >   INIT_FCALL                                               'strtotime'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        IS_SMALLER                                       ~6      0, $5
          8        BOOL                                             ~4      ~6
          9    > > JMPZ                                                     ~4, ->24
    5    10    >   INIT_FCALL                                               'date_format'
         11        INIT_FCALL                                               'date_create'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        SEND_VAL                                                 'd.m.Y'
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !1, $8
    6    18        ECHO                                                     !1
    7    19        INIT_FCALL                                               'strtotime'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $10     
         22        CONCAT                                           ~11     '%3Cbr%3E', $10
         23        ECHO                                                     ~11
   10    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.18 ms | 1395 KiB | 19 Q