3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{ "captcha_code" : 123, [{ "enquete_id" : 1, "opcao_id" : 1 }, { "enquete_id" : 2, "opcao_id" : 1 }]'; $params = json_decode($request->getBody(),true); print_r($params);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DCRfH
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $params, !2 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B+%22captcha_code%22+%3A+123%2C+%5B%7B+%22enquete_id%22+%3A+1%2C+%22opcao_id%22+%3A+1+%7D%2C+%7B+%22enquete_id%22+%3A+2%2C+%22opcao_id%22+%3A+1+%7D%5D'
    3     1        INIT_FCALL                                               'json_decode'
          2        INIT_METHOD_CALL                                         !2, 'getBody'
          3        DO_FCALL                                      0  $4      
          4        SEND_VAR                                                 $4
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.39 ms | 1385 KiB | 17 Q