3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decimal = 613090029426844e18; // doesn't work $decimal2 = 64; //works const FLAG_1 = 0x1; const FLAG_2 = 0x2; const FLAG_3 = 0x4; const FLAG_4 = 0x4; const FLAG_5 = 0x32; const FLAG_6 = 0x40; const FLAG_7 = 0x400; function show_flags ($decimal) { if ($decimal & FLAG_1) { echo "Flag 1 included.<br>\n"; } if ($decimal & FLAG_2) { echo "Flag 2 included.<br>\n"; } if ($decimal & FLAG_3) { echo "Flag 3 included.<br>\n"; } if ($decimal & FLAG_4) { echo "Flag 3 included.<br>\n"; } if ($decimal & FLAG_5) { echo "Flag 3 included.<br>\n"; } if ($decimal & FLAG_6) { echo "Flag 3 included.<br>\n"; } if ($decimal & FLAG_7) { echo "Flag 3 included.<br>\n"; } } show_flags($decimal);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 15 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 18 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 21 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 24 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 27 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 30 Deprecated: Implicit conversion from float 6.13090029426844E+32 to int loses precision in /in/1gGIq on line 33

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:
122.03 ms | 407 KiB | 5 Q