3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $itineary = array (array('portName'=>'Day At Sea'), array('portName'=>'Moscow)); $badPorts = array('At Sea', 'Day At Sea', 'Cruising The Mediterranean Sea'); $image = ''; $image .= implode(',', array_reduce($itinerary, function ($result, $item) use (&$index, $badPorts) { if(!in_array($item['portName'], $badPorts)) $result[$index] = $item['portName']; $index++; return $result; }));
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected 'At' (T_STRING), expecting ')' in /in/gKZUm on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/gKZUm on line 3
Process exited with code 255.