3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.25 ms | 1399 KiB | 17 Q