3v4l.org

run code in 500+ PHP versions simultaneously
<?php $firstArray = array(3,4,5,6); $secondArray = array(4, 5); $outputArray = array(); for($i=0; $i<count($firstArray);$i++) { $found = false; for($j=0; $j<count($secondArray);$j++) { if($firstArray[$i] == $secondArray[$j]) { $found = true; } } if($found == false){ $outputArray[] = $firstArray[$i]; } } print_r($outputArray);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 3 [1] => 6 )

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:
43.61 ms | 1247 KiB | 4 Q