3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php testme(); function testme() { $data='a=1&b=2&c=3'; echo 'parse_data(): ',$data,EOL; parse_str($data); //echo print_r($b,1); if(isset($b)) { echo 'isset b='.$b,EOL; } else { echo 'notset b='.$b,EOL; } if(isset($b)) { echo 'isset b='.$b,EOL; } else { echo 'no b='.$b,EOL; } }
Output for 7.2.0 - 7.2.6
parse_data(): a=1&b=2&c=3 Warning: Use of undefined constant EOL - assumed 'EOL' (this will throw an Error in a future version of PHP) in /in/M9W9v on line 6 EOL Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/M9W9v on line 7 isset b=2 Warning: Use of undefined constant EOL - assumed 'EOL' (this will throw an Error in a future version of PHP) in /in/M9W9v on line 10 EOLisset b=2 Warning: Use of undefined constant EOL - assumed 'EOL' (this will throw an Error in a future version of PHP) in /in/M9W9v on line 16 EOL
Output for 4.3.0 - 7.1.20
parse_data(): a=1&b=2&c=3 Notice: Use of undefined constant EOL - assumed 'EOL' in /in/M9W9v on line 6 EOLisset b=2 Notice: Use of undefined constant EOL - assumed 'EOL' in /in/M9W9v on line 10 EOLisset b=2 Notice: Use of undefined constant EOL - assumed 'EOL' in /in/M9W9v on line 16 EOL