3v4l.org

run code in 500+ PHP versions simultaneously
<?php class WP_Text_Diff_Renderer_Table { protected $compat_fields = array( '_show_split_view', 'inline_diff_renderer', '_diff_threshold' ); public function __get( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { return $this->$name; } } public function __set( $name, $value ) { if ( in_array( $name, $this->compat_fields, true ) ) { $this->$name = $value; } } public function __isset( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { return isset( $this->$name ); } } public function __unset( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { unset( $this->$name ); } } } $obj = new WP_Text_Diff_Renderer_Table(); $obj->_title = 'Hello World'; var_dump( $obj->_title ); var_dump( isset( $obj->_title ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrRJL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   31     0  E >   NEW                                                  $1      'WP_Text_Diff_Renderer_Table'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   32     3        ASSIGN_OBJ                                                   !0, '_title'
          4        OP_DATA                                                      'Hello+World'
   34     5        INIT_FCALL                                                   'var_dump'
          6        FETCH_OBJ_R                                          ~5      !0, '_title'
          7        SEND_VAL                                                     ~5
          8        DO_ICALL                                                     
   35     9        INIT_FCALL                                                   'var_dump'
         10        ISSET_ISEMPTY_PROP_OBJ                               ~7      !0, '_title'
         11        SEND_VAL                                                     ~7
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Class WP_Text_Diff_Renderer_Table:
Function __get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrRJL
function name:  __get
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
    7     1        FETCH_OBJ_R                                          ~1      'compat_fields'
          2        FRAMELESS_ICALL_3                in_array            ~2      !0, ~1
          3        OP_DATA                                                      <true>
          4      > JMPZ                                                         ~2, ->7
    8     5    >   FETCH_OBJ_R                                          ~3      !0
          6      > RETURN                                                       ~3
   10     7    > > RETURN                                                       null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/FrRJL
function name:  __set
number of ops:  9
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   13     2        FETCH_OBJ_R                                          ~2      'compat_fields'
          3        FRAMELESS_ICALL_3                in_array            ~3      !0, ~2
          4        OP_DATA                                                      <true>
          5      > JMPZ                                                         ~3, ->8
   14     6    >   ASSIGN_OBJ                                                   !0
          7        OP_DATA                                                      !1
   16     8    > > RETURN                                                       null

End of function __set

Function __isset:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FrRJL
function name:  __isset
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   RECV                                                 !0      
   19     1        FETCH_OBJ_R                                          ~1      'compat_fields'
          2        FRAMELESS_ICALL_3                in_array            ~2      !0, ~1
          3        OP_DATA                                                      <true>
          4      > JMPZ                                                         ~2, ->7
   20     5    >   ISSET_ISEMPTY_PROP_OBJ                               ~3      !0
          6      > RETURN                                                       ~3
   22     7    > > RETURN                                                       null

End of function __isset

Function __unset:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/FrRJL
function name:  __unset
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   RECV                                                 !0      
   25     1        FETCH_OBJ_R                                          ~1      'compat_fields'
          2        FRAMELESS_ICALL_3                in_array            ~2      !0, ~1
          3        OP_DATA                                                      <true>
          4      > JMPZ                                                         ~2, ->6
   26     5    >   UNSET_OBJ                                                    !0
   28     6    > > RETURN                                                       null

End of function __unset

End of class WP_Text_Diff_Renderer_Table.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.84 ms | 3323 KiB | 14 Q