3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B extends A { } $a = new A(); var_dump($a instanceof A); var_dump($a instanceof B); $b = new B(); var_dump($b instanceof A); var_dump($b instanceof B);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HSVlo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'var_dump'
          4        INSTANCEOF                                       ~5      !0, 'A'
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'var_dump'
          8        INSTANCEOF                                       ~7      !0, 'B'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
   13    11        NEW                                              $9      'B'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $9
   14    14        INIT_FCALL                                               'var_dump'
         15        INSTANCEOF                                       ~12     !1, 'A'
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
   15    18        INIT_FCALL                                               'var_dump'
         19        INSTANCEOF                                       ~14     !1, 'B'
         20        SEND_VAL                                                 ~14
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1395 KiB | 15 Q