3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Get Smart - TV comedy debuted 1965 $agents = array( array(86, "Don Adams"), array(99, "Barbara Feldon"), array(08, "Burt Mustin"), array(13, "Dave Ketchum"), array(44, "Victor French"), array(38, "Angelique Pettyjohn") ); echo "The secret agents and the actors who portrayed them:\n"; foreach ($agents as list( $agent,$actor ) ) { echo $actor, ' => ', $agent, "\n"; }
Output for 5.5.24 - 5.6.28
The secret agents and the actors who portrayed them: Don Adams => 86 Barbara Feldon => 99 Burt Mustin => 0 Dave Ketchum => 13 Victor French => 44 Angelique Pettyjohn => 38
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'list' (T_LIST) in /in/MtfQv on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_LIST in /in/MtfQv on line 14
Process exited with code 255.