3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php testme(); function testme() { $data='b=2'; parse_str($data); echo $b; echo $b; if(true) { echo $b; } else { echo "bad\n"; } if(isset($b)) { echo "good\n"; } else { echo "bad\n"; } if(isset($b)) { echo "good\n"; } else { echo "bad\n"; } }
Output for 7.2.0 - 7.3.0rc4
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/Th6g3 on line 6 222good good
Output for 4.3.0 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.23
222good good