3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n=11;$m=50; while($n<=$m) { if($n%2==0) { echo "even no from $n and $m are:"; echo $n.' '; } $n=$n+1; } ?>
based on 8n6lD
Output for 4.3.0 - 7.1.0
even no from 12 and 50 are:12 even no from 14 and 50 are:14 even no from 16 and 50 are:16 even no from 18 and 50 are:18 even no from 20 and 50 are:20 even no from 22 and 50 are:22 even no from 24 and 50 are:24 even no from 26 and 50 are:26 even no from 28 and 50 are:28 even no from 30 and 50 are:30 even no from 32 and 50 are:32 even no from 34 and 50 are:34 even no from 36 and 50 are:36 even no from 38 and 50 are:38 even no from 40 and 50 are:40 even no from 42 and 50 are:42 even no from 44 and 50 are:44 even no from 46 and 50 are:46 even no from 48 and 50 are:48 even no from 50 and 50 are:50