3v4l.org

run code in 300+ 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:  17
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        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAL                                                 '%26a%5B%5D%5Bid%5D%3D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      'a%5B%5D%5Bid%5D%3D', $4
          7        ASSIGN                                                   !1, ~5
    5     8        INIT_FCALL                                               'parse_str'
          9        SEND_VAR                                                 !1
         10        SEND_REF                                                 !2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_export'
         13        FETCH_DIM_R                                      ~8      !2, 'a'
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.29 ms | 1001 KiB | 16 Q