3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str='prijs=0,209&orderby=price&order=undefined&posts_per_page=undefined'; $str=parse_str($str, $values); var_dump($str); array_walk($str, function(&$n) { $n = explode(',', $n); }); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7WZh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str, !1 = $values
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'
    3     1        INIT_FCALL                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'array_walk'
         10        SEND_REF                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fu7WZh%3A6%240'
    8    12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fu7WZh%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7WZh
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    8     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fu7WZh%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.17 ms | 1395 KiB | 21 Q