3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variableGlobal = 30; Class myClass{ public $classProperty; function __construct(&$globalVar){ $this->classProperty = $globalVar; } function myFunction(){ $accessible = $this->classProperty; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRuKD
function name:  (null)
number of ops:  2
compiled vars:  !0 = $variableGlobal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 30
   16     1      > RETURN                                                   1

Class myClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRuKD
function name:  __construct
number of ops:  4
compiled vars:  !0 = $globalVar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        ASSIGN_OBJ                                               'classProperty'
          2        OP_DATA                                                  !0
   11     3      > RETURN                                                   null

End of function __construct

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRuKD
function name:  myFunction
number of ops:  3
compiled vars:  !0 = $accessible
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_OBJ_R                                      ~1      'classProperty'
          1        ASSIGN                                                   !0, ~1
   15     2      > RETURN                                                   null

End of function myfunction

End of class myClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.31 ms | 1393 KiB | 13 Q