3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { private $myVar = 3; public function test() { # accessible everywhere in the object $this->myVar; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N4MIi
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   1

Class Example:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N4MIi
function name:  test
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      'myVar'
          1        FREE                                                     ~0
    9     2      > RETURN                                                   null

End of function test

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.35 ms | 1392 KiB | 13 Q