3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '2014-04-12'; $d = DateTime::createFromFormat('Y-m-d', $date); return $d && $d->format('Y-m-d') == $date;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) 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/GQSCf
function name:  (null)
number of ops:  14
compiled vars:  !0 = $date, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-04-12'
    5     1        INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          2        SEND_VAL                                                 'Y-m-d'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    6     6      > JMPZ_EX                                          ~5      !1, ->12
          7    >   INIT_METHOD_CALL                                         !1, 'format'
          8        SEND_VAL_EX                                              'Y-m-d'
          9        DO_FCALL                                      0  $6      
         10        IS_EQUAL                                         ~7      !0, $6
         11        BOOL                                             ~5      ~7
         12    > > RETURN                                                   ~5
         13*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.49 ms | 1393 KiB | 13 Q