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_udiff($opt1, $opt2, function($e1, $e2){ echo "1";var_dump($e1); echo "2";var_dump($e2); });
Output for git.master, git.master_jit, rfc.property-hooks
1array(1) { ["title"]=> string(4) "damn" } 2array(1) { ["title"]=> string(3) "php" } 1array(1) { ["title"]=> string(3) "php" } 2array(1) { ["title"]=> string(5) "fucks" } 1array(1) { ["title"]=> string(5) "fucks" } 2array(1) { ["title"]=> string(2) "up" } 1array(1) { ["title"]=> string(2) "up" } 2array(1) { ["title"]=> string(2) "my" } 1array(1) { ["title"]=> string(2) "my" } 2array(1) { ["title"]=> string(4) "code" } 1array(1) { ["title"]=> string(4) "damn" } 2array(1) { ["title"]=> string(3) "php" } 1array(1) { ["title"]=> string(3) "php" } 2array(1) { ["title"]=> string(5) "fucks" } 1array(1) { ["title"]=> string(5) "fucks" } 2array(1) { ["title"]=> string(2) "up" } 1array(1) { ["title"]=> string(2) "up" } 2array(1) { ["title"]=> string(2) "my" } 1array(1) { ["title"]=> string(2) "my" } 2array(1) { ["title"]=> string(4) "code" }

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:
47.3 ms | 403 KiB | 8 Q