3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.72 ms | 1437 KiB | 14 Q