3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query1 = 'button_id798_number=798&button_id798_size=936&button_id798_price=0&button_id798_status=2&button_id799_number=799&button_id799_size=840&button_id799_price=0&button_id799_status=2&button_id800_number=800&button_id800_size=840&button_id800_price=329280'; $query2 = preg_replace('/_id(\d+)_(.+?)=/', '[$1][point_$2]=', $query1); parse_str($query2, $out); // better to be safe than sorry print '<pre>' ; var_dump($query2, $out['button']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n2d6f
function name:  (null)
number of ops:  18
compiled vars:  !0 = $query1, !1 = $query2, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'button_id798_number%3D798%26button_id798_size%3D936%26button_id798_price%3D0%26button_id798_status%3D2%26button_id799_number%3D799%26button_id799_size%3D840%26button_id799_price%3D0%26button_id799_status%3D2%26button_id800_number%3D800%26button_id800_size%3D840%26button_id800_price%3D329280'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F_id%28%5Cd%2B%29_%28.%2B%3F%29%3D%2F'
          3        SEND_VAL                                                 '%5B%241%5D%5Bpoint_%242%5D%3D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'parse_str'
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    6    11        ECHO                                                     '%3Cpre%3E'
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        FETCH_DIM_R                                      ~7      !2, 'button'
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.24 ms | 1395 KiB | 19 Q