3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
2012-12-03 16:36:04 7 km 356 deg

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.75 ms | 401 KiB | 8 Q