3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[{"id":96,"type":"product","title":"Cassia","code":"CODE-101","fabric":0,"option":"2","options":[["TEst 1","http://localhost/content/uploads/2017/07/seating4-150x150.png"],["Dimension 2","http://localhost/content/uploads/2017/07/seating3-150x150.png"],["Dimension 3","http://localhost/content/uploads/2017/07/seating1-150x150.png"],["Dimension 4","http://localhost/content/uploads/2017/07/seating2-150x150.png"]],"quantity":5},{"id":139,"type":"product","title":"Accent","code":"","fabric":0,"option":0,"options":[["Testing","http://localhost/content/uploads/2017/07/seating3-150x150.png"]],"quantity":13}]'; $string = addslashes($string); var_dump($string); $decoded = json_decode($string); var_dump($decoded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nFG5G
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22id%22%3A96%2C%22type%22%3A%22product%22%2C%22title%22%3A%22Cassia%22%2C%22code%22%3A%22CODE-101%22%2C%22fabric%22%3A0%2C%22option%22%3A%222%22%2C%22options%22%3A%5B%5B%22TEst+1%22%2C%22http%3A%2F%2Flocalhost%2Fcontent%2Fuploads%2F2017%2F07%2Fseating4-150x150.png%22%5D%2C%5B%22Dimension+2%22%2C%22http%3A%2F%2Flocalhost%2Fcontent%2Fuploads%2F2017%2F07%2Fseating3-150x150.png%22%5D%2C%5B%22Dimension+3%22%2C%22http%3A%2F%2Flocalhost%2Fcontent%2Fuploads%2F2017%2F07%2Fseating1-150x150.png%22%5D%2C%5B%22Dimension+4%22%2C%22http%3A%2F%2Flocalhost%2Fcontent%2Fuploads%2F2017%2F07%2Fseating2-150x150.png%22%5D%5D%2C%22quantity%22%3A5%7D%2C%7B%22id%22%3A139%2C%22type%22%3A%22product%22%2C%22title%22%3A%22Accent%22%2C%22code%22%3A%22%22%2C%22fabric%22%3A0%2C%22option%22%3A0%2C%22options%22%3A%5B%5B%22Testing%22%2C%22http%3A%2F%2Flocalhost%2Fcontent%2Fuploads%2F2017%2F07%2Fseating3-150x150.png%22%5D%5D%2C%22quantity%22%3A13%7D%5D'
    5     1        INIT_FCALL                                               'addslashes'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
   12    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.44 ms | 1395 KiB | 19 Q