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'; require 'ryat.php';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rj169
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   FETCH_W                      global              $1      '_GET'
          1        ASSIGN_DIM                                               $1, 'hi'
          2        OP_DATA                                                  'ryat'
   29     3        NEW                                              $3      'cm404'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   30     6        INIT_METHOD_CALL                                         !0, 'init'
          7        DO_FCALL                                      0          
   31     8        FETCH_W                      global              $7      '_GET'
          9        ASSIGN_DIM                                               $7, 'hi'
         10        OP_DATA                                                  'cm404'
   32    11        INCLUDE_OR_EVAL                                          'ryat.php', REQUIRE
         12      > RETURN                                                   1

Function _get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rj169
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/rj169
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/rj169
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:
157.75 ms | 1399 KiB | 13 Q