3v4l.org

run code in 300+ PHP versions simultaneously
<?php $status = 2; //if ($status >> 2 & 0x1 == 1) { // $statustext = "Høj temp. alarm"; //} else if ($status >> 1 & 0x1 == 1) { // $statustext = "Lav temp. alarm"; //} else if ($status >> 0 & 0x1 == 1) { // $statustext = "OK"; //} else { // sensor error // $statustext = "Føler fejl"; //} if (($status & 0x1) == 0) { $statustext = "Føler fejl"; } else if (($status >> 3 & 0x1) > 0) { $statustext = "Føler batteri lavt niveau"; } else if (($status >> 2 & 0x1) > 0) { $statustext = "Høj temp. alarm"; } else if (($status >> 1 & 0x1) > 0) { $statustext = "Lav temp. alarm"; } else { // sensor OK $statustext = "OK"; } echo $statustext;
Output for git.master, git.master_jit, rfc.property-hooks
Føler fejl

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:
29.65 ms | 405 KiB | 9 Q