3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { } class Bar implements Foo { } $var = 'Bar'; var_dump($var instanceof Foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/60lAf
function name:  (null)
number of ops:  7
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'bar'
    5     1        ASSIGN                                                   !0, 'Bar'
    6     2        INIT_FCALL                                               'var_dump'
          3        INSTANCEOF                                       ~2      !0, 'Foo'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.79 ms | 1393 KiB | 15 Q