3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array('invoice_duration_id' => 2, 'type' => 'invoice'); $array2 = array('invoice_duration_id' => 2, 'type' => '321'); $array3 = array('invoice_duration_id' => 2, 'type' => 'cod'); //$findDuplicate = array_diff_assoc( // $arr= $array1 + $array2 + $array3, // array_unique($arr) //); $arr= $array1->diff($array2)->count() === 0; var_dump($arr); die(); print_r($findDuplicate); //$result = $array1 + $array2; //var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to a member function diff() on array in /in/VlaAH:13 Stack trace: #0 {main} thrown in /in/VlaAH on line 13
Process exited with code 255.

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:
71.71 ms | 405 KiB | 5 Q