3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = json_decode('{"polygons":[{"coords":[[[51.66524722349841,39.261860555541965],[51.663886141991874,39.2623540820007],[51.66519384852736,39.2639204920654],[51.66524722349841,39.261860555541965]]],"params":{"strokeWidth":"3","strokeColor":"blue","balloonContent":"dsf","opacity":"0.6","fillColor":"lightblue"}}],"lines":[],"routes":[]}'); var_dump($json); ?>
based on uoUcl
Output for 7.0.0 - 7.2.0
object(stdClass)#3 (3) { ["polygons"]=> array(1) { [0]=> object(stdClass)#1 (2) { ["coords"]=> array(1) { [0]=> array(4) { [0]=> array(2) { [0]=> float(51.665247223498) [1]=> float(39.261860555542) } [1]=> array(2) { [0]=> float(51.663886141992) [1]=> float(39.262354082001) } [2]=> array(2) { [0]=> float(51.665193848527) [1]=> float(39.263920492065) } [3]=> array(2) { [0]=> float(51.665247223498) [1]=> float(39.261860555542) } } } ["params"]=> object(stdClass)#2 (5) { ["strokeWidth"]=> string(1) "3" ["strokeColor"]=> string(4) "blue" ["balloonContent"]=> string(3) "dsf" ["opacity"]=> string(3) "0.6" ["fillColor"]=> string(9) "lightblue" } } } ["lines"]=> array(0) { } ["routes"]=> array(0) { } }
Output for 5.3.21 - 5.6.28
object(stdClass)#1 (3) { ["polygons"]=> array(1) { [0]=> object(stdClass)#2 (2) { ["coords"]=> array(1) { [0]=> array(4) { [0]=> array(2) { [0]=> float(51.665247223498) [1]=> float(39.261860555542) } [1]=> array(2) { [0]=> float(51.663886141992) [1]=> float(39.262354082001) } [2]=> array(2) { [0]=> float(51.665193848527) [1]=> float(39.263920492065) } [3]=> array(2) { [0]=> float(51.665247223498) [1]=> float(39.261860555542) } } } ["params"]=> object(stdClass)#3 (5) { ["strokeWidth"]=> string(1) "3" ["strokeColor"]=> string(4) "blue" ["balloonContent"]=> string(3) "dsf" ["opacity"]=> string(3) "0.6" ["fillColor"]=> string(9) "lightblue" } } } ["lines"]=> array(0) { } ["routes"]=> array(0) { } }