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)'; $polygon = json_decode('[' . str_replace(array('(', ')'), array('[', ']'), $value) . ']', true); print_r($polygon);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => -6.2811957386589 [1] => 106.7014195108 ) [1] => Array ( [0] => -6.2811424165064 [1] => 106.70432702537 ) [2] => Array ( [0] => -6.2781776962329 [1] => 106.70438066955 ) [3] => Array ( [0] => -6.2781776962329 [1] => 106.70136586662 ) )

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