3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config['base_validation_rules']['account_email'] = [ 'field' => 'account_email', 'label' => 'Account Email Address', 'rules' => [ 'trim', 'valid_email', 'check_burner_email', 'check_ban', 'check_ip_address' ]]; print_r ( array_replace_recursive( $config['base_validation_rules']['account_email'], ['rules'=>['required'], 'label'=>'test'], $config['base_validation_rules']['account_email'])); print_r ( array_merge_recursive(['rules'=>['required'], 'label'=>'test'], $config['base_validation_rules']['account_email']));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [field] => account_email [label] => Account Email Address [rules] => Array ( [0] => trim [1] => valid_email [2] => check_burner_email [3] => check_ban [4] => check_ip_address ) ) Array ( [rules] => Array ( [0] => required [1] => trim [2] => valid_email [3] => check_burner_email [4] => check_ban [5] => check_ip_address ) [label] => Array ( [0] => test [1] => Account Email Address ) [field] => account_email )

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