<?php $a = new class extends \DOMDocument { private $foo; public function getFoo() { if ($this->foo !== null) { print "woohoo"; } } }; var_dump($a->getFoo());
You have javascript disabled. You will not be able to edit any code.