3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"product":{"identifier":{"condition":"function()\n{\n return \'hello\';\n}","value":"function()\n{\n var a = s[\"[[ADPAN-]]\"];\n\n return \'hello\';\n}"}}}'; var_dump( json_decode( $string, true ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d1JAp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22product%22%3A%7B%22identifier%22%3A%7B%22condition%22%3A%22function%28%29%5Cn%7B%5Cn++++return+%27hello%27%3B%5Cn%7D%22%2C%22value%22%3A%22function%28%29%5Cn%7B%5Cn++++var+a+%3D+s%5B%5C%22%5B%5BADPAN-%5D%5D%5C%22%5D%3B%5Cn%5Cn++++return+%27hello%27%3B%5Cn%7D%22%7D%7D%7D'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.23 ms | 1394 KiB | 17 Q