3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( 'a' => array( 'name' => 'a1', 'second_name' => 'a2' ), 'b' => array( 'name' => 'b1', 'second_name' => 'b2' ), 'c' => array( 'name' => 'c1', 'second_name' => 'c2' ) ); print_r($a, function($value, $field, $search){ return $value[$field] == $search });
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '}' in /in/a9XIN on line 18
Process exited with code 255.