3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HelloWorld { /** * @var array<string, array{stdClass, int}> */ public array $detectedCheat = []; //If this function is actually executed, the php warning is obtained. public function test(): void { $this->detectedCheat["playerName"][1]++;//error } } (new helloworld())->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FDrl
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'helloworld'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'test'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class HelloWorld:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2FDrl
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_RW                                     $0      'detectedCheat'
          1        FETCH_DIM_RW                                     $1      $0, 'playerName'
          2        FETCH_DIM_RW                                     $2      $1, 1
          3        PRE_INC                                                  $2
   13     4      > RETURN                                                   null

End of function test

End of class HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.82 ms | 1397 KiB | 13 Q