3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str='prijs=0,209&orderby=price&order=undefined&posts_per_page=undefined'; 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/qSWoj
function name:  (null)
number of ops:  17
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                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'array_walk'
          9        SEND_REF                                                 !0
         10        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FqSWoj%3A6%240'
    8    11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FqSWoj%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qSWoj
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%2FqSWoj%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.15 ms | 1395 KiB | 21 Q