I have a parent class and a subclass, the parent class has a constructer that sets a var and I would like to use that var in the subclass, I have i
var
Keyword parent should be used to access methods or static variables of parent class only, so your first code is the proper one, since $myVar is not static.
parent
$myVar