3v4l.org

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