3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( "name" => "peter griffin", "age" => "41", "email" => "peter@example.com", ); $filters = array ( "age" => array ( "filter"=>FILTER_VALIDATE_INT, "flags"=>FILTER_FORCE_ARRAY, "options"=>array ( "min_range"=>1, "max_range"=>120 ) ),"name" => array ( "filter"=>FILTER_CALLBACK, "flags"=>FILTER_FORCE_ARRAY, "options"=>"ucwords" ), "email"=> FILTER_VALIDATE_EMAIL, ); print_r(filter_var_array($arr, $filters)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [age] => Array ( [0] => 41 ) [name] => Peter Griffin [email] => peter@example.com )

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:
39.48 ms | 401 KiB | 8 Q