3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "he%00llo=world%00apart"; echo 'Input:', var_dump($string); parse_str($string, $values); echo "Output:\n"; $count = 0; foreach($values as $key => $value) { echo var_export(++$count), ': ', var_dump($key), ' => ', var_dump($value), "\n"; } printf("done, %d variable(s)\n", $count);

preferences:
36.13 ms | 402 KiB | 5 Q