3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zkicg
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'Foo'
          1*     > RETURN                                                   null

End of function foo

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.44 ms | 1394 KiB | 15 Q