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, $array); //convert $_GET type string into array // code before this is not needed if using $_GET instead of a string array_walk($array, function(&$n) { $n = explode(',', $n); }); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YfuKs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $array
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                                               'parse_str'
          2        SEND_VAR                                                 !0
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'array_walk'
          6        SEND_REF                                                 !1
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYfuKs%3A8%240'
   10     8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
   12    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FYfuKs%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 940 KiB | 22 Q