3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} $a = new A; $a->abc = 'abc'; $reflect = new ReflectionClass($a); $props = $reflect->getProperties(); foreach ($props as $prop) { print $prop->getName() . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/IB85M
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $reflect, !2 = $props, !3 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $4      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    6     3        ASSIGN_OBJ                                               !0, 'abc'
          4        OP_DATA                                                  'abc'
    8     5        NEW                                              $8      'ReflectionClass'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $8
    9     9        INIT_METHOD_CALL                                         !1, 'getProperties'
         10        DO_FCALL                                      0  $11     
         11        ASSIGN                                                   !2, $11
   11    12      > FE_RESET_R                                       $13     !2, ->19
         13    > > FE_FETCH_R                                               $13, !3, ->19
   12    14    >   INIT_METHOD_CALL                                         !3, 'getName'
         15        DO_FCALL                                      0  $14     
         16        CONCAT                                           ~15     $14, '%0A'
         17        ECHO                                                     ~15
   11    18      > JMP                                                      ->13
         19    >   FE_FREE                                                  $13
   13    20      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.43 ms | 1393 KiB | 13 Q