3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '(-6.2811957386588855, 106.70141951079609),(-6.281142416506361, 106.70432702536823),(-6.2781776962328815, 106.70438066954853),(-6.2781776962328815, 106.70136586661579)'; foreach(explode('),(',trim($string,'()')) as $single_array) { $sub_array= array(); foreach(explode(',',$single_array) as $sbs_array) { $sub_array[] = $sbs_array; } $result[] = $sub_array; } print_r ($result);
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:
28.15 ms | 406 KiB | 5 Q