3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Helper { public static $skip = ['ENI', 'JFK/EDW']; } var_dump(\array_intersect(\explode('-', 'SYD-SFO-LAX'), Helper::$skip)); var_dump(\array_intersect(\explode('-', 'SYD-SFO-ENI'), Helper::$skip)); var_dump(\array_intersect(\explode('-', 'SYD-SFO-ENI-JFK/EDW'), ['ENI'])); var_dump(\array_intersect(\explode('-', 'SYD-SFO-JFK/EDW'), ['JFK/EDW'])); var_dump(\array_intersect(\explode('-', 'SYD-SFO-ENI-JFK/EDW'), Helper::$skip)); var_dump(\array_intersect(\explode('-', 'SYD-SFO-JFK/EDW'), Helper::$skip));
Output for git.master, git.master_jit, rfc.property-hooks
array(0) { } array(1) { [2]=> string(3) "ENI" } array(1) { [2]=> string(3) "ENI" } array(1) { [2]=> string(7) "JFK/EDW" } array(2) { [2]=> string(3) "ENI" [3]=> string(7) "JFK/EDW" } array(1) { [2]=> string(7) "JFK/EDW" }

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