- var_dump: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
class A {
public $b;
public function A(){
$this->b = new B();
}
}
class B {
public $a;
public function B() {
$this->a = new A();
}
}
var_dump(new A());