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(foo() instanceof $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M86eU
function name:  (null)
number of ops:  10
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        INIT_FCALL                                               'foo'
          4        DO_FCALL                                      0  $4      
          5        FETCH_CLASS                                   0  $5      !1
          6        INSTANCEOF                                       ~6      $4, $5
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M86eU
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:
152.7 ms | 1397 KiB | 16 Q