3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.06 ms | 1394 KiB | 17 Q