3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selected=array('11a_Ma1','11a_Sc2','11b_Ls1'); $already=array('11SJP','11a_Ma1','11a_Sc2'); print_r(array_diff($selected,$already)); print_r(array_diff($already,$selected)); $a1=array(1,2,3); $a2=array(1,2,3); print_r(array_diff($a1,$a2));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [2] => 11b_Ls1 ) Array ( [0] => 11SJP ) Array ( )

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