3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.3 ms | 1395 KiB | 17 Q