3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printIncrementAndShard($id) { $increment = $id >> 8; $shard = ($id & 0x000000FF); echo $id . ' = ' . $increment . '.' . $shard . PHP_EOL; } printIncrementAndShard(0x00000100); printIncrementAndShard(0x00000101); printIncrementAndShard(0x12345678); printIncrementAndShard(0xFFFFFFFF);
Output for git.master, git.master_jit, rfc.property-hooks
256 = 1.0 257 = 1.1 305419896 = 1193046.120 4294967295 = 16777215.255

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