3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export([ // string, then times '0:1' => str_repeat(0, 1), // '0' '1:0' => str_repeat(1, 0), // '' '0:0' => str_repeat(0, 0), // '' '1:1' => str_repeat(1, 1), // '1' ]); echo "\n---\n"; $params = [ ['one' => 0, 'two' => 1, 'three' => 0, 'four' => 1], // strings ['three' => 0, 'one' => 1, 'four' => 1, 'two' => 0], // times 'str_repeat' ]; var_export([ 'udiff' => array_udiff_assoc(...$params), 'uintersect' => array_uintersect_assoc(...$params), ]);
Output for git.master, git.master_jit, rfc.property-hooks
array ( '0:1' => '0', '1:0' => '', '0:0' => '', '1:1' => '1', ) --- array ( 'udiff' => array ( 'four' => 1, ), 'uintersect' => array ( 'one' => 0, 'two' => 1, 'three' => 0, ), )

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:
59.29 ms | 406 KiB | 5 Q