3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data['menus'] = array( '1' => array( 'Dashboard' => '/LMS/Dashboard', ), '2' => array( 'Notifications' => '/LMS/Notifications', ), '3' => array( 'Clients' => '/LMS/Clients', ), '4' => array( 'Penalties' => '/LMS/Penalties', ), '5' => array( 'Payments' => '/LMS/Payments', ), '6' => array( 'Profit' => '/LMS/Profit', ), '7' => array( 'Income' => '/LMS/Income', ), '8' => array( 'Outcome' => '/LMS/Outcome', ), '9' => array( 'Accounts' => '/LMS/Accounts', ) ); $access = array ( 'pages_id' => array ( 0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 8, 5 => 9 ), ); print_r(array_intersect_key($data['menus'], array_flip($access['pages_id'])));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [Dashboard] => /LMS/Dashboard ) [2] => Array ( [Notifications] => /LMS/Notifications ) [3] => Array ( [Clients] => /LMS/Clients ) [4] => Array ( [Penalties] => /LMS/Penalties ) [8] => Array ( [Outcome] => /LMS/Outcome ) [9] => Array ( [Accounts] => /LMS/Accounts ) )

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:
18.4 ms | 402 KiB | 8 Q