3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* the default gc root size is 10,000 */ for ($i=0; $i<9998; $i++) { $array = array(); $array[0] = &$array; unset($array); } $matches = array("foo" => "bar"); /* this bucket will trigger the segfault */ $dummy = array("dummy"); /* used to trigger gc_collect_cycles */ $dummy[1] = &$dummy; $matches[1] = &$matches; $matches[2] = $dummy; preg_match_all("/(\d)+/", "foo123456bar", $matches); echo "okey";
Output for git.master, git.master_jit, rfc.property-hooks
okey

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:
38.02 ms | 401 KiB | 8 Q