3v4l.org

run code in 300+ PHP versions simultaneously
<?php $opt1 = array( array( 'title' => "damn" ), array( 'title' => "php" ), array( 'title' => "fucks" ), array( 'title' => "up" ), array( 'title' => "my" ), array( 'title' => "code" ), ); $opt2 = array( ); array_intersect_uassoc($opt1, $opt2, function($e1, $e2, $e3, $e4){ var_dump($e1); var_dump($e2); var_dump($e3); var_dump($e4); });
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 2 passed and exactly 4 expected in /in/2g7kh:26 Stack trace: #0 [internal function]: {closure}(0, 1) #1 /in/2g7kh(26): array_intersect_uassoc(Array, Array, Object(Closure)) #2 {main} thrown in /in/2g7kh on line 26
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:
50.54 ms | 401 KiB | 8 Q