3v4l.org

run code in 300+ PHP versions simultaneously
<?php $guests = array( 1 => array( 'name', => 'Mr Miller', 'affiliation' => 'groom', 'group' => 'friends', 'circle' => 'neighbours' ), 2 => array( 'name', => 'Mrs Henderson', 'affiliation' => 'bride', 'group' => 'family', 'circle' => 'neighbours' ), 3 => array( 'name', => 'Mr Schneider', 'affiliation' => 'groom', 'group' => 'family', 'circle' => 'mother' ) ); $f_guests = array_search('groom', $guests); // $key = 2; echo $f_guests
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /in/ROASZ on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in /in/ROASZ on line 5
Process exited with code 255.

preferences:
179.12 ms | 1395 KiB | 65 Q