3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new __PHP_Incomplete_Class(); if (is_object($x)) { var_dump([$x, 'is object']); } else { var_dump([$x, 'is not object']); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nO10O
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      '__PHP_Incomplete_Class'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        TYPE_CHECK                                  256          !0
          4      > JMPZ                                                     ~4, ->11
    5     5    >   INIT_FCALL                                               'var_dump'
          6        INIT_ARRAY                                       ~5      !0
          7        ADD_ARRAY_ELEMENT                                ~5      'is+object'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
         10      > JMP                                                      ->16
    7    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_ARRAY                                       ~7      !0
         13        ADD_ARRAY_ELEMENT                                ~7      'is+not+object'
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.67 ms | 1394 KiB | 15 Q