3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [1, 2, 3]; $b = [3, 4, 5]; $result = [1, 3]; var_export( $result[0] !== $result[1] && ( (in_array($result[0], $a) && in_array($result[1], $b)) || (in_array($result[0], $b) && in_array($result[1], $a)) ) );
Output for rfc.property-hooks, git.master, git.master_jit
true

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:
44.8 ms | 1245 KiB | 4 Q