3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a' => '123', 'b' => '321', 'c' => ['asdf' => 'asdf']]; $b = ['a' => '123', 'b' => '123', 'c' => ['asdf' => 'asdf123']]; $r = array_udiff_assoc($a, $b, function($old, $new) { var_dump($old, $new); return $new == $old ? 0 : -1; }); var_dump($r);
Output for git.master, git.master_jit, rfc.property-hooks
string(3) "123" string(3) "123" string(3) "321" string(3) "123" array(1) { ["asdf"]=> string(4) "asdf" } array(1) { ["asdf"]=> string(7) "asdf123" } array(2) { ["b"]=> string(3) "321" ["c"]=> array(1) { ["asdf"]=> string(4) "asdf" } }

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