3v4l.org

run code in 500+ PHP versions simultaneously
<?php $variable[1] = ['A' => 'n', 'X' => 'n']; $variable[2] = ['A' => 'n', 'X' => 'Y']; $variable[3] = ['A' => 'B', 'X' => 'n']; $test = 'B'; $test2 = 'Y'; If(in_array($test, array_column($variable, "A"))){ Echo $test . " Found in A"; }Else if(in_array($test2, array_column($variable, "X"))){ Echo $test2 . " Found in B"; }else{ Echo "none found"; }
Output for git.master, git.master_jit, rfc.property-hooks
B Found in A

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:
53.83 ms | 1599 KiB | 4 Q