3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $niz = array(); for ($i=1; $i<=100; $i++) $niz[] = $i; for ($j=0; $j<=count($niz)-1; $j++) { if ($niz[$j] % 2 == 1) echo $niz[$j] . "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99