3v4l.org

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

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.18 ms | 1395 KiB | 17 Q