3v4l.org

run code in 300+ PHP versions simultaneously
<?php //ini_set('unserialize_callback_func', 'phpinfo'); class cm404 { public $str = ''; function __construct() { if (isset($_GET['ryat'])) { exit; } unset($_GET); } function __destruct() { _get(); } } function _get() { global $obj; //if(!is_object($obj)) { // $obj = new cm404(); //} echo "hi, $_GET[hi]\n"; var_dump($obj); } $_GET['ryat'] = 1; $_GET['hi'] = 'ryat'; $obj = new cm404();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/th066
function name:  (null)
number of ops:  10
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN_DIM                                               $1, 'ryat'
          2        OP_DATA                                                  1
   31     3        FETCH_W                      global              $3      '_GET'
          4        ASSIGN_DIM                                               $3, 'hi'
          5        OP_DATA                                                  'ryat'
   32     6        NEW                                              $5      'cm404'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $5
          9      > RETURN                                                   1

Function _get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/th066
function name:  _get
number of ops:  11
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   BIND_GLOBAL                                              !0, 'obj'
   26     1        ROPE_INIT                                     3  ~4      'hi%2C+'
          2        FETCH_R                      global              ~1      '_GET'
          3        FETCH_DIM_R                                      ~2      ~1, 'hi'
          4        ROPE_ADD                                      1  ~4      ~4, ~2
          5        ROPE_END                                      2  ~3      ~4, '%0A'
          6        ECHO                                                     ~3
   27     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   28    10      > RETURN                                                   null

End of function _get

Class cm404:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/th066
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_IS                                         ~0      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'ryat'
          2      > JMPZ                                                     ~1, ->4
   10     3    > > EXIT                                                     
   13     4    >   UNSET_VAR                                                '_GET'
   14     5      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/th066
function name:  __destruct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL_BY_NAME                                       '_get'
          1        DO_FCALL                                      0          
   18     2      > RETURN                                                   null

End of function __destruct

End of class cm404.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1400 KiB | 15 Q