3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'manufacturer=1,2,3&brand=5,4&filter=29-31+48-46,47&price=150-700'; parse_str( $str, $array); echo $array['filter'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hn3Ri
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'manufacturer%3D1%2C2%2C3%26brand%3D5%2C4%26filter%3D29-31%2B48-46%2C47%26price%3D150-700'
    3     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    4     5        FETCH_DIM_R                                      ~4      !1, 'filter'
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.41 ms | 1394 KiB | 15 Q