3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FLAG_1 = 0b0001; // 1 const FLAG_2 = 0b0010; // 2 const FLAG_3 = 0b0100; // 4 const FLAG_4 = 0b1000; // 8 // Can you see the pattern? ;-) function show_flags ($flags) { if ($flags & FLAG_1) { echo "You passed flag 1!\n"; } if ($flags & FLAG_2) { echo "You passed flag 2!\n"; } if ($flags & FLAG_3) { echo "You passed flag 3!\n"; } if ($flags & FLAG_4) { echo "You passed flag 4!\n"; } } show_flags(decbin(2));
Output for git.master, git.master_jit, rfc.property-hooks
You passed flag 2! You passed flag 4!

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