3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1=1; $var2=0; $var3=2; $var4=-1; for ($i=1; $i<=4; $i++) { $current=${"var$i"}; if ($current <= 0) echo "var$i "; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
var2 var4