3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.57 ms | 1385 KiB | 15 Q