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($a,true); $captcha = array_shift($params); print_r($params); print_r($captcha);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a0fTa
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $params, !2 = $captcha
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22captcha_code%22+%3A+123%7D%2C+%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        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'array_shift'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    5    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.25 ms | 1394 KiB | 19 Q