3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = get_declared_classes(); $enums = array_filter( $classes, enum_exists(...) ); var_dump( $enums );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvT2b
function name:  (null)
number of ops:  14
compiled vars:  !0 = $classes, !1 = $enums
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_declared_classes'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'array_filter'
    5     4        SEND_VAR                                                 !0
    6     5        INIT_FCALL                                               'enum_exists'
          6        ZEND_CALLABLE_CONVERT                            ~4      
          7        SEND_VAL                                                 ~4
    4     8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.76 ms | 1004 KiB | 17 Q