3v4l.org

run code in 500+ PHP versions simultaneously
<?php $vals = "1,3,4,7"; $queryString = 'a[][id]=' . str_replace(',', '&a[][id]=', $vals); parse_str($queryString, $output); var_export($output['a']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/401pR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $vals, !1 = $queryString, !2 = $output
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1%2C3%2C4%2C7'
    4     1        FRAMELESS_ICALL_3                str_replace         ~4      '%2C', '%26a%5B%5D%5Bid%5D%3D'
          2        OP_DATA                                                      !0
          3        CONCAT                                               ~5      'a%5B%5D%5Bid%5D%3D', ~4
          4        ASSIGN                                                       !1, ~5
    5     5        INIT_FCALL                                                   'parse_str'
          6        SEND_VAR                                                     !1
          7        SEND_REF                                                     !2
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'var_export'
         10        FETCH_DIM_R                                          ~8      !2, 'a'
         11        SEND_VAL                                                     ~8
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.02 ms | 2148 KiB | 15 Q