3v4l.org

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

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

End of function _get

Class cm404:
Function init:
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/klpXG
function name:  init
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_IS                                         ~0      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~0, 'ryat'
          2      > JMPZ                                                     ~1, ->4
    8     3    > > EXIT                                                     'hi'
   11     4    >   FETCH_UNSET                                      $2      '_GET'
          5        UNSET_DIM                                                $2, 'hi'
   12     6      > RETURN                                                   null

End of function init

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/klpXG
function name:  __destruct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ROPE_INIT                                     3  ~3      'hi%2C+'
          1        FETCH_R                      global              ~0      '_GET'
          2        FETCH_DIM_R                                      ~1      ~0, 'hi'
          3        ROPE_ADD                                      1  ~3      ~3, ~1
          4        ROPE_END                                      2  ~2      ~3, '%0A'
          5        ECHO                                                     ~2
   20     6      > RETURN                                                   null

End of function __destruct

End of class cm404.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.37 ms | 1399 KiB | 13 Q