3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c{} class n{} class b{} $c = new c; $c->left = new n; $c->right = new n; $c->left->child = new b; $c->right->child = new b; echo serialize($c) . "\n"; $c->right->child = $c->left->child; echo serialize($c) . "\n";

preferences:
35.84 ms | 402 KiB | 5 Q