3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function staticSurprise($str = '') { static $v = 'abc'; if ($str == '') { echo $v; return; } static $v = ''; echo 'v is empty'; return; } staticSurprise();
Output for 4.3.0 - 7.1.10