3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '"{\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"id\": \"0eb3d8a7d9afa466766e90b47f2bd785\",\n \"type\": \"Feature\",\n \"properties\": {\n \"feature-description\": \"<div id=\"content\">html content here</div>\"\n },\n \"geometry\": {\n \"coordinates\": [\n [\n [\n 144.87452272951856,\n -37.72702750630904\n ],\n [\n 145.00292543948336,\n -37.78131678501029\n ],\n [\n 145.12926821291518,\n -37.732458226660285\n ],\n [\n 145.11278872073137,\n -37.70801684893612\n ],\n [\n 144.9184680420177,\n -37.72431199679091\n ],\n [\n 144.87452272951856,\n -37.72702750630904\n ]\n ]\n ],\n \"type\": \"Polygon\"\n }\n }\n ]\n}"'; $json = json_decode( $jsonString,1 ); echo gettype($json); // string
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ltP6s
function name:  (null)
number of ops:  9
compiled vars:  !0 = $jsonString, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%22%7B%5Cn++%5C%22type%5C%22%3A+%5C%22FeatureCollection%5C%22%2C%5Cn++%5C%22features%5C%22%3A+%5B%5Cn++++%7B%5Cn++++++%5C%22id%5C%22%3A+%5C%220eb3d8a7d9afa466766e90b47f2bd785%5C%22%2C%5Cn++++++%5C%22type%5C%22%3A+%5C%22Feature%5C%22%2C%5Cn++++++%5C%22properties%5C%22%3A+%7B%5Cn++++++++%5C%22feature-description%5C%22%3A+%5C%22%3Cdiv+id%3D%5C%22content%5C%22%3Ehtml+content+here%3C%2Fdiv%3E%5C%22%5Cn++++++%7D%2C%5Cn++++++%5C%22geometry%5C%22%3A+%7B%5Cn++++++++%5C%22coordinates%5C%22%3A+%5B%5Cn++++++++++%5B%5Cn++++++++++++%5B%5Cn++++++++++++++144.87452272951856%2C%5Cn++++++++++++++-37.72702750630904%5Cn++++++++++++%5D%2C%5Cn++++++++++++%5B%5Cn++++++++++++++145.00292543948336%2C%5Cn++++++++++++++-37.78131678501029%5Cn++++++++++++%5D%2C%5Cn++++++++++++%5B%5Cn++++++++++++++145.12926821291518%2C%5Cn++++++++++++++-37.732458226660285%5Cn++++++++++++%5D%2C%5Cn++++++++++++%5B%5Cn++++++++++++++145.11278872073137%2C%5Cn++++++++++++++-37.70801684893612%5Cn++++++++++++%5D%2C%5Cn++++++++++++%5B%5Cn++++++++++++++144.9184680420177%2C%5Cn++++++++++++++-37.72431199679091%5Cn++++++++++++%5D%2C%5Cn++++++++++++%5B%5Cn++++++++++++++144.87452272951856%2C%5Cn++++++++++++++-37.72702750630904%5Cn++++++++++++%5D%5Cn++++++++++%5D%5Cn++++++++%5D%2C%5Cn++++++++%5C%22type%5C%22%3A+%5C%22Polygon%5C%22%5Cn++++++%7D%5Cn++++%7D%5Cn++%5D%5Cn%7D%22'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        GET_TYPE                                         ~5      !1
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.62 ms | 1386 KiB | 15 Q