3v4l.org

run code in 300+ PHP versions simultaneously
<?php class M { protected $A = 'foo'; private $B = 'bar'; public Function dump () { var_dump ( array_keys (get_object_vars ($this)), array_keys (call_user_func ('get_object_vars', $this)) ); return $this; } } var_dump (get_object_vars ((new M)->dump ()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94ES3
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'get_object_vars'
          2        NEW                                              $0      'M'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $0, 'dump'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class M:
Function dump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94ES3
function name:  dump
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
   14     1        INIT_FCALL                                               'array_keys'
          2        INIT_FCALL                                               'get_object_vars'
          3        FETCH_THIS                                       ~0      
          4        SEND_VAL                                                 ~0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
   15     9        INIT_FCALL                                               'array_keys'
         10        INIT_FCALL                                               'get_object_vars'
         11        FETCH_THIS                                       ~3      
         12        SEND_USER                                                ~3
         13        DO_FCALL                                      0  $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
   18    18        FETCH_THIS                                       ~7      
         19      > RETURN                                                   ~7
   19    20*     > RETURN                                                   null

End of function dump

End of class M.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.22 ms | 1396 KiB | 19 Q