3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{ "cols": [{"id":"","label":"Option","pattern":"","type":"string"}, {"id":"","label":"Vote","pattern":"","type":"number"}], "rows": [{"c":[{"v":"Excited","f":null},{"v":'.$value1.',"f":null}]}, {"c":[{"v":"Bored","f":null},{"v":'.$value2.',"f":null}]}, {"c":[{"v":"Neutral","f":null},{"v":'.$value3.',"f":null}]}]}'; echo json_decode($a, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mPsLL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $value1, !2 = $value2, !3 = $value3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   CONCAT                                           ~4      '%7B++%22cols%22%3A+%5B%7B%22id%22%3A%22%22%2C%22label%22%3A%22Option%22%2C%22pattern%22%3A%22%22%2C%22type%22%3A%22string%22%7D%2C%0A%09%09%09%09%09%09%09+++%7B%22id%22%3A%22%22%2C%22label%22%3A%22Vote%22%2C%22pattern%22%3A%22%22%2C%22type%22%3A%22number%22%7D%5D%2C%0A%09%09%09%09%09++%22rows%22%3A+%5B%7B%22c%22%3A%5B%7B%22v%22%3A%22Excited%22%2C%22f%22%3Anull%7D%2C%7B%22v%22%3A', !1
          1        CONCAT                                           ~5      ~4, '%2C%22f%22%3Anull%7D%5D%7D%2C%0A%09%09%09%09%09%09%09+++%7B%22c%22%3A%5B%7B%22v%22%3A%22Bored%22%2C%22f%22%3Anull%7D%2C%7B%22v%22%3A'
    8     2        CONCAT                                           ~6      ~5, !2
          3        CONCAT                                           ~7      ~6, '%2C%22f%22%3Anull%7D%5D%7D%2C%0A%09%09%09%09%09%09%09+++%7B%22c%22%3A%5B%7B%22v%22%3A%22Neutral%22%2C%22f%22%3Anull%7D%2C%7B%22v%22%3A'
    9     4        CONCAT                                           ~8      ~7, !3
          5        CONCAT                                           ~9      ~8, '%2C%22f%22%3Anull%7D%5D%7D%5D%7D'
    5     6        ASSIGN                                                   !0, ~9
   11     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $11     
         11        ECHO                                                     $11
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.97 ms | 1395 KiB | 15 Q