3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filterKeys = array( 'ticket', 'password', 'pass_word', 'passcode', 'pass_code', 'paypassword', 'pay_password' ); function filterKeysCallback(array &$list, &$filterKeys) { foreach($list as $key => &$item) { if (is_array($item)) { filterKeysCallback($item, $filterKeys); continue; } if (in_array($key, $filterKeys)) { var_dump($key, $filterKeys, in_array($key, $filterKeys), array_search($key, $filterKeys)); exit(); $item = str_repeat('x', strlen($item)); } } unset($item); }; $params = array( 'get' => array( 0 => '1231', 1 => '456' ) ); filterKeysCallback($params['get'], $filterKeys);
Output for git.master, git.master_jit, rfc.property-hooks

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.45 ms | 401 KiB | 8 Q