3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ['item' => '39.00', 'time' => '0.00'], ['item' => '49.00'], ['time' => '0.00', 'Value' => 0], ['item' => '49.00', 'time' => '0.00'] ]; $array2 = [ ['item' => '39.00', 'time' => '10.00'], ['item' => '49.00'], ['time' => '0.00', 'Value' => 0], ['item' => '49.00', 'time' => '0.00', 'Value' => 3] ]; var_export( array_filter( array_map( fn($row1, $row2) => array_diff_assoc($row2, $row1) + array_diff_assoc($row1, $row2), $array1, $array2 ) ) );
Output for git.master_jit, git.master
array ( 0 => array ( 'time' => '10.00', ), 3 => array ( 'Value' => 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:
64.74 ms | 405 KiB | 5 Q