3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=5;/* this multiline comment */ $y=10; //this is global echo $y; echo '<br>'; function add(){ static $z=20; echo $z; $z++; } add(); add(); add();
based on vMgbD
Output for 4.3.0 - 7.2.0
10<br>202122