3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"smartling": {"en-us": {"files": [{ "fileUri": "/dictionaries/sample_en.json", "stringCount": 100, "wordCount": 12540, "approvedStringCount": 100, "completedStringCount": 40, "lastUploaded": "2014-06-12", "fileType": "json" }] }, "ja-jp": { "files":[{ "fileUri": "/dictionaries/sample_en.json", "stringCount": 100, "wordCount": 12540, "approvedStringCount": 100, "completedStringCount": 40, "lastUploaded": "2014-06-12", "fileType": "json" }] } } }'; $result = json_decode($string); // Result: object(stdClass)#1 (2) { ["foo"]=> string(3) "bar" ["cool"]=> string(4) "attr" } var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VisqX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22smartling%22%3A%0A%09%7B%22en-us%22%3A%0A%09%09%7B%22files%22%3A+%5B%7B%0A%09%09%09%22fileUri%22%3A+%22%2Fdictionaries%2Fsample_en.json%22%2C%0A++++++++%09%22stringCount%22%3A+100%2C%0A%09%09%09%22wordCount%22%3A+12540%2C%0A++++++++%09%22approvedStringCount%22%3A+100%2C%0A++++++++%09%22completedStringCount%22%3A+40%2C%0A++++++++%09%22lastUploaded%22%3A+%222014-06-12%22%2C%0A++++++++%09%22fileType%22%3A+%22json%22%0A%09%09%7D%5D+%7D%2C%0A%09+%22ja-jp%22%3A+%7B%0A%09%22files%22%3A%5B%7B%0A%09%09%22fileUri%22%3A+%22%2Fdictionaries%2Fsample_en.json%22%2C%0A++++++++%09%22stringCount%22%3A+100%2C%0A%09%09%09%22wordCount%22%3A+12540%2C%0A++++++++%09%22approvedStringCount%22%3A+100%2C%0A++++++++%09%22completedStringCount%22%3A+40%2C%0A++++++++%09%22lastUploaded%22%3A+%222014-06-12%22%2C%0A++++++++%09%22fileType%22%3A+%22json%22%0A%09%09%7D%5D%0A%09+%7D%09%0A%09%7D%0A%7D'
   29     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   32     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.13 ms | 1394 KiB | 17 Q