3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $usernumber = 18; $myseries = range(0, 59, 5); foreach($myseries as $num) { echo $num.'<br />'; $chcek = round(18/5) * 5; echo $check; //if($usernumber is close to $num) { // echo 'Matching number is '.$num; //} }
Output for 5.0.4 - 7.1.0
0<br /> Notice: Undefined variable: check in /in/APJED on line 8 5<br /> Notice: Undefined variable: check in /in/APJED on line 8 10<br /> Notice: Undefined variable: check in /in/APJED on line 8 15<br /> Notice: Undefined variable: check in /in/APJED on line 8 20<br /> Notice: Undefined variable: check in /in/APJED on line 8 25<br /> Notice: Undefined variable: check in /in/APJED on line 8 30<br /> Notice: Undefined variable: check in /in/APJED on line 8 35<br /> Notice: Undefined variable: check in /in/APJED on line 8 40<br /> Notice: Undefined variable: check in /in/APJED on line 8 45<br /> Notice: Undefined variable: check in /in/APJED on line 8 50<br /> Notice: Undefined variable: check in /in/APJED on line 8 55<br /> Notice: Undefined variable: check in /in/APJED on line 8
Output for 5.0.0 - 5.0.3
0<br /> Notice: Undefined variable: check in /in/APJED on line 8 5<br /> Notice: Undefined variable: check in /in/APJED on line 8 10<br /> Notice: Undefined variable: check in /in/APJED on line 8 15<br /> Notice: Undefined variable: check in /in/APJED on line 8 20<br /> Notice: Undefined variable: check in /in/APJED on line 8 25<br /> Notice: Undefined variable: check in /in/APJED on line 8 30<br /> Notice: Undefined variable: check in /in/APJED on line 8 35<br /> Notice: Undefined variable: check in /in/APJED on line 8 40<br /> Notice: Undefined variable: check in /in/APJED on line 8 45<br /> Notice: Undefined variable: check in /in/APJED on line 8 50<br /> Notice: Undefined variable: check in /in/APJED on line 8 55<br /> Notice: Undefined variable: check in /in/APJED on line 8
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/APJED on line 4 Warning: Invalid argument supplied for foreach() in /in/APJED on line 5
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/APJED on line 4