3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = '(-6.2811957386588855, 106.70141951079609),(-6.281142416506361, 106.70432702536823),(-6.2781776962328815, 106.70438066954853),(-6.2781776962328815, 106.70136586661579)'; preg_match_all('/\(([0-9\-\s,.]+)\)/', $value, $matches); array_walk($matches[1], function(&$val) { $val = explode(',', $val); }); $coordinates = $matches[1]; print_r($coordinates);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => -6.2811957386588855 [1] => 106.70141951079609 ) [1] => Array ( [0] => -6.281142416506361 [1] => 106.70432702536823 ) [2] => Array ( [0] => -6.2781776962328815 [1] => 106.70438066954853 ) [3] => Array ( [0] => -6.2781776962328815 [1] => 106.70136586661579 ) )

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