3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "sortAfter=1&searchString=vsfweew"; list($e1,$sortAfter,$e2,$searchString) = preg_split("/=|&/",$str); $arr[$e1] = $sortAfter; $arr[$e2] = $searchString; print_r($arr);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.62 ms | 2102 KiB | 12 Q