3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = []; $status = "None"; $sql = array( array("status" => "Placed"), array("status" => "Pending"), array("status" => "Pending") ); foreach ($sql as $value) { $return[] = $value["status"]; } print_r($return); if(in_array("Pending", $return)) { $status = "Pending"; } if(in_array("Placed", $return) and !in_array("Pending", $return)) { $status = "Placed"; } if(in_array("Received", $return) and in_array("Placed", $return)) { $status = "Received"; } print_r($status);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Placed [1] => Pending [2] => Pending ) Pending

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