3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mockedMysqlResult = array( array("exoutdoorspaceplottotals" => "111 222 465"), array("exoutdoorspaceplottotals" => "666 123 412"), array("exoutdoorspaceplottotals" => "000 999"), ); $test = array(111, 465, 555, 666, 777); $counter = 0; while ($row = array_shift($mockedMysqlResult)) { $plotsTotal1 = explode(' ', $row['exoutdoorspaceplottotals']); $plotsTotal2 = array_filter($plotsTotal1); $matches = array_intersect($test, $plotsTotal2); if (count($matches) > 0) { echo 'Entry ' . ++$counter . ' contains ' . implode(',', $matches) . "\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Entry 1 contains 111,465 Entry 2 contains 666

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