3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $obj = (object) array('a' => 1, 'b' => 2, 'c' => 3); $prop = 'a'; var_dump($obj->$prop instanceof foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aiFm6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $obj, !1 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    5     3        CAST                                          8  ~3      <array>
          4        ASSIGN                                                   !0, ~3
    6     5        ASSIGN                                                   !1, 'a'
    8     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~6      !0, !1
          8        INSTANCEOF                                       ~7      ~6, 'foo'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.7 ms | 1394 KiB | 17 Q