3v4l.org

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

Class SomeSerializableTrait: [no user functions]
Class SomeResizableInterface: [no user functions]
Class SomeContainer: [no user functions]
Class SomeOtherContainer: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.2 ms | 1395 KiB | 15 Q