3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array(); foreach(get_declared_classes() as $class) { $ref = new ReflectionClass($class); $values[$ref->getFileName()] = $class; } var_dump($values);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/IKksN
function name:  (null)
number of ops:  19
compiled vars:  !0 = $values, !1 = $class, !2 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'get_declared_classes'
          2        DO_ICALL                                         $4      
          3      > FE_RESET_R                                       $5      $4, ->14
          4    > > FE_FETCH_R                                               $5, !1, ->14
    6     5    >   NEW                                              $6      'ReflectionClass'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $6
    7     9        INIT_METHOD_CALL                                         !2, 'getFileName'
         10        DO_FCALL                                      0  $9      
         11        ASSIGN_DIM                                               !0, $9
         12        OP_DATA                                                  !1
    5    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $5
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1395 KiB | 17 Q