3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mask = 125; $blocks = (int)($mask / 16); $b = unpack('n*', pack('n*', ...array_fill(0, $blocks, 0xffff), ...array_pad([~((2 ** (16 - ($mask % 16))) - 1) & 0xffff], 8 - $blocks, 0))); foreach ($b as $block) { printf("%016b\n", $block); }
Output for git.master, git.master_jit, rfc.property-hooks
1111111111111111 1111111111111111 1111111111111111 1111111111111111 1111111111111111 1111111111111111 1111111111111111 1111111111111000

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