3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __destruct() { } } gc_disable(); $a1 = new A; $a2 = new A; $a1->ref = $a2; $a2->ref = $a1; $a1 = $a2 = NULL; echo 'removed cycles: '.gc_collect_cycles()."\n"; echo 'removed cycles: '.gc_collect_cycles()."\n";
Output for rfc.property-hooks, git.master, git.master_jit
Deprecated: Creation of dynamic property A::$ref is deprecated in /in/0LIVn on line 12 Deprecated: Creation of dynamic property A::$ref is deprecated in /in/0LIVn on line 13 removed cycles: 2 removed cycles: 0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
89.35 ms | 1544 KiB | 4 Q