3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $min_age=17; $max_age=35; //minimum and maximum age in the db table as well $htmsAgeTable=array(); for ($i=$min_age;$i<=$max_age;$i++) { //$row=$res->fetch_array(); //$htmsAgeTable[$i]=$row['value']; $htmsAgeTable[$i]=2*$i; } echo $htmsAgeTable[30]; ?>
Output for 4.3.0 - 7.1.0
60