3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TYPE_TEST1', 1 << 0); define('TYPE_TEST2', 1 << 1); define('TYPE_TEST3', 1 << 2); define('TYPE_TEST4', 1 << 3); define('TYPE_TEST5', 1 << 4); $test = TYPE_TEST2 | TYPE_TEST4 | TYPE_TEST1; if ($test & TYPE_TEST1) { echo "1!\n"; } if ($test & TYPE_TEST2) { echo "2!\n"; } if ($test & TYPE_TEST3) { echo "3!\n"; } if ($test & TYPE_TEST4) { echo "4!\n"; } if ($test & TYPE_TEST5) { echo "5!\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1! 2! 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:
36.88 ms | 401 KiB | 8 Q