3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new Test; class Test { public $holder; public static function method() { $this->holder[0] = array('one' => 'item'); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HaaKq
function name:  (null)
number of ops:  4
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3      > RETURN                                                   1

Class Test:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HaaKq
function name:  method
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_THIS                                       $0      
          1        FETCH_OBJ_W                                      $1      $0, 'holder'
          2        ASSIGN_DIM                                               $1, 0
          3        OP_DATA                                                  <array>
   13     4      > RETURN                                                   null

End of function method

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1393 KiB | 13 Q