3v4l.org

run code in 300+ PHP versions simultaneously
<?php $k=0; $array1=Array(1,2,3); $array2=Array(1,3,5); $array3=Array(); for($i=0;$i<count($array1);$i++) { if(!in_array($array1[$i],$array2)) { if(!in_array($array1[$i],$array3)) { $array3[$k]=$array1[$i]; $k++; } } } for($j=0;$j<count($array2);$j++) { if(!in_array($array2[$j],$array1)) { if(!in_array($array2[$j],$array3)) { $array3[$k]=$array1[$j]; $k++; } } } print_r($array3);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 2 [1] => 3 )

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