3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $link = 'http://www.triff-chemnitz.de/fuu/baar?sid=12rhdgsvgz3gfusgvc'; $url = parse_url($link); parse_str($url['query'], $query); foreach ($query as $key => $value) { if (in_array($key, $this->removeQueryValues)) { unset($query[$key]); } } $url['query'] = http_build_query($query); echo http_build_url($url);
based on g5Tn3
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/mrUVv:9 Stack trace: #0 {main} thrown in /in/mrUVv on line 9
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/mrUVv on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: this in /in/mrUVv on line 9 Warning: in_array(): Wrong datatype for second argument in /in/mrUVv on line 9 Fatal error: Call to undefined function: http_build_query() in /in/mrUVv on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: this in /in/mrUVv on line 9 Warning: in_array(): Wrong datatype for second argument in /in/mrUVv on line 9 Fatal error: Call to undefined function: http_build_query() in /in/mrUVv on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: this in /in/mrUVv on line 9 Warning: in_array() [http://www.php.net/function.in-array]: Wrong datatype for second argument in /in/mrUVv on line 9 Fatal error: Call to undefined function: http_build_query() in /in/mrUVv on line 14