3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum TestEnum: string { case X = 'x'; } var_dump(\is_a(TestEnum::class, \StringBackedEnum::class, true)); var_dump(\is_a(TestEnum::class, \BackedEnum::class, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VBSSW
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'testenum'
    7     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'is_a'
          3        SEND_VAL                                                 'TestEnum'
          4        SEND_VAL                                                 'StringBackedEnum'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'is_a'
         11        SEND_VAL                                                 'TestEnum'
         12        SEND_VAL                                                 'BackedEnum'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $2      
         15        SEND_VAR                                                 $2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class TestEnum: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.95 ms | 1437 KiB | 15 Q