3v4l.org

run code in 300+ PHP versions simultaneously
<?php class helloWorld { const ONE = 1; public $array = array( 1 => 'hugo', 'VALUE FIRST', 'VALUE SECOND', 'VALUE THIRD', ); public function getShit () { return $this->array; } } $hello = new helloWorld(); $hello->array[1] = 'sas'; print_r($hello->getShit());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/or4KE
function name:  (null)
number of ops:  12
compiled vars:  !0 = $hello
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'helloWorld'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        FETCH_OBJ_W                                      $4      !0, 'array'
          4        ASSIGN_DIM                                               $4, 1
          5        OP_DATA                                                  'sas'
   23     6        INIT_FCALL                                               'print_r'
          7        INIT_METHOD_CALL                                         !0, 'getShit'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class helloWorld:
Function getshit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/or4KE
function name:  getShit
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FETCH_OBJ_R                                      ~0      'array'
          1      > RETURN                                                   ~0
   17     2*     > RETURN                                                   null

End of function getshit

End of class helloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.17 ms | 1399 KiB | 15 Q