3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.77 ms | 1468 KiB | 14 Q