3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "(33.110029967689556, 35.60865999564635), (33.093492845160036, 35.63955904349791), (33.0916232355565, 35.602995170206896)"; $array = explode("), ", $string); $arrayX = array(); $arrayY = array(); foreach($array as $pair) { $pair = str_replace('(', '', $pair); $pair = str_replace(')', '', $pair); $arrPair = explode(", ", $pair); $arrayX[] = $arrPair[0]; $arrayY[] = $arrPair[1]; } var_dump($arrayX); var_dump($arrayY);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(18) "33.110029967689556" [1]=> string(18) "33.093492845160036" [2]=> string(16) "33.0916232355565" } array(3) { [0]=> string(17) "35.60865999564635" [1]=> string(17) "35.63955904349791" [2]=> string(18) "35.602995170206896" }

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