3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( ! class_exists('SplFixedArray')) { return; } $array = range(1, 6); foreach ($array as $key => $value) { if ($value & 1) { unset($array[ $key ]); } } echo count(SplFixedArray::fromArray($array)), PHP_EOL; // 6 echo count(SplFixedArray::fromArray($array, false)), PHP_EOL; // 3
Output for git.master, git.master_jit, rfc.property-hooks
6 3

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