3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "field[a][2][b][0][c][1][field_name]=value"; parse_str($text, $result); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7nmFT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'field%5Ba%5D%5B2%5D%5Bb%5D%5B0%5D%5Bc%5D%5B1%5D%5Bfield_name%5D%3Dvalue'
    4     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.57 ms | 1436 KiB | 15 Q