3v4l.org

run code in 300+ PHP versions simultaneously
<?php $coordinates = "9.499819 123.920318,9.490845 123.916563,9.484644 123.922292,9.49148 123.931519,9.499755 123.925683,9.499819 123.920318"; foreach (explode(',', $coordinates) as $i => $latLng) { sscanf($latLng, '%f %f', $result[$i]['lat'], $result[$i]['lng']); }; var_export($result);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'lat' => 9.499819, 'lng' => 123.920318, ), 1 => array ( 'lat' => 9.490845, 'lng' => 123.916563, ), 2 => array ( 'lat' => 9.484644, 'lng' => 123.922292, ), 3 => array ( 'lat' => 9.49148, 'lng' => 123.931519, ), 4 => array ( 'lat' => 9.499755, 'lng' => 123.925683, ), 5 => array ( 'lat' => 9.499819, 'lng' => 123.920318, ), )

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:
161.41 ms | 406 KiB | 5 Q