3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'prijs=0,209&orderby=price&order=undefined&posts_per_page=undefined'; $array = preg_split('/[&]/' , $str); foreach ($array as $a) { $values = preg_split('/[=]/' , $a); $f[$values[0]] = preg_split('/[,]/' , $values[1]); } print_r($f);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/vhUTR
function name:  (null)
number of ops:  27
compiled vars:  !0 = $str, !1 = $array, !2 = $a, !3 = $values, !4 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'prijs%3D0%2C209%26orderby%3Dprice%26order%3Dundefined%26posts_per_page%3Dundefined'
    4     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5B%26%5D%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6      > FE_RESET_R                                       $8      !1, ->22
          7    > > FE_FETCH_R                                               $8, !2, ->22
    8     8    >   INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%5B%3D%5D%2F'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
    9    13        FETCH_DIM_R                                      ~11     !3, 0
         14        INIT_FCALL                                               'preg_split'
         15        SEND_VAL                                                 '%2F%5B%2C%5D%2F'
         16        FETCH_DIM_R                                      ~13     !3, 1
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                         $14     
         19        ASSIGN_DIM                                               !4, ~11
         20        OP_DATA                                                  $14
    6    21      > JMP                                                      ->7
         22    >   FE_FREE                                                  $8
   12    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.41 ms | 1388 KiB | 17 Q