3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $string = ' * Time Stamp: 2012-12-03 16:36:04 * Speed: 7 km/h * Heading: 356 deg (N) * Event ID: -48 * Event Desc: .Arrived at Inbound Receiving * Event Value: -56 * Event Value Type: 0'; preg_match_all("/ ([a-z ]+):([a-z0-9:\- ]+)/i", $string,$match); $values = array_combine($match[1], $match[2]) ; echo $values['Time Stamp'] ,PHP_EOL ; echo $values['Speed'] ,PHP_EOL ; echo $values['Heading'] ,PHP_EOL ; ?>
Output for 5.3.0 - 5.4.9
Parse error: syntax error, unexpected '<' in /in/FpOWj on line 3
Process exited with code 255.