3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[{"lat":-2.1581795660883976,"lng":-79.90096002817154},{"lat":-2.171559596852916,"lng":-79.9018183350563},{"lat":-2.176448424731824,"lng":-79.89057451486588},{"lat":-2.1662419064644722,"lng":-79.88053232431412},{"lat":-2.156206859267206,"lng":-79.8930636048317},{"lat":-2.15835110569104,"lng":-79.90164667367935}]'; var_dump(json_decode($str));
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> object(stdClass)#1 (2) { ["lat"]=> float(-2.1581795660883976) ["lng"]=> float(-79.90096002817154) } [1]=> object(stdClass)#2 (2) { ["lat"]=> float(-2.171559596852916) ["lng"]=> float(-79.9018183350563) } [2]=> object(stdClass)#3 (2) { ["lat"]=> float(-2.176448424731824) ["lng"]=> float(-79.89057451486588) } [3]=> object(stdClass)#4 (2) { ["lat"]=> float(-2.1662419064644722) ["lng"]=> float(-79.88053232431412) } [4]=> object(stdClass)#5 (2) { ["lat"]=> float(-2.156206859267206) ["lng"]=> float(-79.8930636048317) } [5]=> object(stdClass)#6 (2) { ["lat"]=> float(-2.15835110569104) ["lng"]=> float(-79.90164667367935) } }

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:
53.95 ms | 403 KiB | 8 Q