3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array ( "name" => "peter griffin", "age" => "41", "email" => "peter@example.com", ); $filters = array ( "name" => array ( "filter"=>FILTER_CALLBACK, "flags"=>FILTER_FORCE_ARRAY, "options"=>"ucwords" ), "age" => array ( "filter"=>FILTER_VALIDATE_INT, "options"=>array ( "min_range"=>1, "max_range"=>120 ) ), "email"=> FILTER_VALIDATE_EMAIL, ); print_r(filter_var_array)); ?>
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected ')' in /in/ehQfI on line 29
Process exited with code 255.