3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.04 ms | 1393 KiB | 13 Q