3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hello\0world"; 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:
41.16 ms | 402 KiB | 5 Q