3v4l.org

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

Class A: [no user functions]
Class B: [no user functions]
Class Node: [no user functions]
Class C: [no user functions]
Class Page: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.52 ms | 1009 KiB | 14 Q