3v4l.org

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

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.41 ms | 1395 KiB | 19 Q