3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_Post { public $filter; public function __get( $property ) { return $this->$property; } } $post = new WP_Post(); $post->filter = 'foo'; var_dump( $post->filter ); unset( $post->filter ); var_dump( $post->filter );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/66Nvl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'WP_Post'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        ASSIGN_OBJ                                               !0, 'filter'
          4        OP_DATA                                                  'foo'
   14     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~5      !0, 'filter'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   16     9        UNSET_OBJ                                                !0, 'filter'
   18    10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~7      !0, 'filter'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class WP_Post:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/66Nvl
function name:  __get
number of ops:  4
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        FETCH_OBJ_R                                      ~1      !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function __get

End of class WP_Post.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.67 ms | 1450 KiB | 14 Q