3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = new DateTime; if (is_object($value) && $value instanceof DateTime ) { $value = $value->format(AppConstant::DATETIME_FORMAT_MYSQL); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/u6oHS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        TYPE_CHECK                                  256  ~4      !0
          4      > JMPZ_EX                                          ~4      ~4, ->7
          5    >   INSTANCEOF                                       ~5      !0, 'DateTime'
          6        BOOL                                             ~4      ~5
          7    > > JMPZ                                                     ~4, ->13
    7     8    >   INIT_METHOD_CALL                                         !0, 'format'
          9        FETCH_CLASS_CONSTANT                             ~6      'AppConstant', 'DATETIME_FORMAT_MYSQL'
         10        SEND_VAL_EX                                              ~6
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !0, $7
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1384 KiB | 13 Q