3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct() { $_REQUEST[__CLASS__]['page'] = 5; ${__CLASS__}->pik=9; } } var_dump($_REQUEST); echo (new A)->pik; var_dump($_REQUEST);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHtke
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_R                      global              ~0      '_REQUEST'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   13     4        NEW                                              $2      'A'
          5        DO_FCALL                                      0          
          6        FETCH_OBJ_R                                      ~4      $2, 'pik'
          7        ECHO                                                     ~4
   14     8        INIT_FCALL                                               'var_dump'
          9        FETCH_R                      global              ~5      '_REQUEST'
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHtke
function name:  __construct
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_W                      global              $0      '_REQUEST'
          1        FETCH_DIM_W                                      $1      $0, 'A'
          2        ASSIGN_DIM                                               $1, 'page'
          3        OP_DATA                                                  5
    6     4        FETCH_W                      local               $3      'A'
          5        ASSIGN_OBJ                                               $3, 'pik'
          6        OP_DATA                                                  9
    7     7      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.57 ms | 1395 KiB | 15 Q