3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new Test; print_r($test->method()); class Test { var $holder; public static function method() { $this->holder[0] = array('one' => 'item'); return $this->holder; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mEdKG
function name:  (null)
number of ops:  9
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
    5     3        INIT_FCALL                                               'print_r'
          4        INIT_METHOD_CALL                                         !0, 'method'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
   18     8      > RETURN                                                   1

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

End of function method

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.97 ms | 1386 KiB | 15 Q