3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jstring = '{ "responseHeader": { "status": 0, "QTime": 617, "params": { "indent": "true", "q": "*cat*", "_": "1477957184587", "wt": "json" } }, "response": { "numFound": 211689, "start": 0, "docs": [ { "id": 151419929185, "blogId": 118735857, "type": "photo", "ts": 1475746080, "_version_": 1547431931177599000 }, { "id": 151419930356, "blogId": 267658313, "type": "photo", "ts": 1475746084, "_version_": 1547431931181793300 }, { "id": 151419929352, "blogId": 244420775, "type": "text", "ts": 1475746086, "_version_": 1547431931201716200 }, { "id": 151419930663, "blogId": 103909184, "type": "photo", "ts": 1475746088, "_version_": 1547431934254121000 }, { "id": 151419931641, "blogId": 211342713, "type": "photo", "ts": 1475746088, "_version_": 1547431934260412400 }, { "id": 151419931512, "blogId": 312028424, "type": "text", "ts": 1475746094, "_version_": 1547431939495952400 }, { "id": 151419924069, "blogId": 277487309, "type": "photo", "ts": 1475746075, "_version_": 1547431924888240000 }, { "id": 151419929371, "blogId": 267658313, "type": "photo", "ts": 1475746080, "_version_": 1547431924891385900 }, { "id": 151419935235, "blogId": 237075104, "type": "text", "ts": 1475746100, "_version_": 1547431943599030300 }, { "id": 151419792023, "blogId": 305604685, "type": "text", "ts": 1475745612, "_version_": 1547431948834570200 } ] } }'; $pstring = json_decode($jstring, true); print(http_build_query(['query' => $jstring]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CIv8a
function name:  (null)
number of ops:  12
compiled vars:  !0 = $jstring, !1 = $pstring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++%22responseHeader%22%3A+%7B%0A++++%22status%22%3A+0%2C%0A++++%22QTime%22%3A+617%2C%0A++++%22params%22%3A+%7B%0A++++++%22indent%22%3A+%22true%22%2C%0A++++++%22q%22%3A+%22%2Acat%2A%22%2C%0A++++++%22_%22%3A+%221477957184587%22%2C%0A++++++%22wt%22%3A+%22json%22%0A++++%7D%0A++%7D%2C%0A++%22response%22%3A+%7B%0A++++%22numFound%22%3A+211689%2C%0A++++%22start%22%3A+0%2C%0A++++%22docs%22%3A+%5B%0A++++++%7B%0A++++++++%22id%22%3A+151419929185%2C%0A++++++++%22blogId%22%3A+118735857%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746080%2C%0A++++++++%22_version_%22%3A+1547431931177599000%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419930356%2C%0A++++++++%22blogId%22%3A+267658313%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746084%2C%0A++++++++%22_version_%22%3A+1547431931181793300%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419929352%2C%0A++++++++%22blogId%22%3A+244420775%2C%0A++++++++%22type%22%3A+%22text%22%2C%0A++++++++%22ts%22%3A+1475746086%2C%0A++++++++%22_version_%22%3A+1547431931201716200%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419930663%2C%0A++++++++%22blogId%22%3A+103909184%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746088%2C%0A++++++++%22_version_%22%3A+1547431934254121000%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419931641%2C%0A++++++++%22blogId%22%3A+211342713%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746088%2C%0A++++++++%22_version_%22%3A+1547431934260412400%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419931512%2C%0A++++++++%22blogId%22%3A+312028424%2C%0A++++++++%22type%22%3A+%22text%22%2C%0A++++++++%22ts%22%3A+1475746094%2C%0A++++++++%22_version_%22%3A+1547431939495952400%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419924069%2C%0A++++++++%22blogId%22%3A+277487309%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746075%2C%0A++++++++%22_version_%22%3A+1547431924888240000%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419929371%2C%0A++++++++%22blogId%22%3A+267658313%2C%0A++++++++%22type%22%3A+%22photo%22%2C%0A++++++++%22ts%22%3A+1475746080%2C%0A++++++++%22_version_%22%3A+1547431924891385900%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419935235%2C%0A++++++++%22blogId%22%3A+237075104%2C%0A++++++++%22type%22%3A+%22text%22%2C%0A++++++++%22ts%22%3A+1475746100%2C%0A++++++++%22_version_%22%3A+1547431943599030300%0A++++++%7D%2C%0A++++++%7B%0A++++++++%22id%22%3A+151419792023%2C%0A++++++++%22blogId%22%3A+305604685%2C%0A++++++++%22type%22%3A+%22text%22%2C%0A++++++++%22ts%22%3A+1475745612%2C%0A++++++++%22_version_%22%3A+1547431948834570200%0A++++++%7D%0A++++%5D%0A++%7D%0A%7D'
   91     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   93     6        INIT_FCALL                                               'http_build_query'
          7        INIT_ARRAY                                       ~5      !0, 'query'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.79 ms | 1396 KiB | 17 Q