3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [[0, 3, 10, 5, 6, 9, 2, 7, 1, 4, 8, 11], [0,1], [0,1], [0,1]]; $deletes = [3, 5]; $results = []; foreach ($array as $value) { foreach ($value as $valueVal) { $results[] = in_array($valueVal, $deletes); } } var_export($results);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => false, 1 => true, 2 => false, 3 => true, 4 => false, 5 => false, 6 => false, 7 => false, 8 => false, 9 => false, 10 => false, 11 => false, 12 => false, 13 => false, 14 => false, 15 => false, 16 => false, 17 => false, )

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:
26.28 ms | 406 KiB | 5 Q