3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number =5678; $flag = 0; $num = $number; echo $num % 10; echo (int)$num / 10;die; while($num > 0){ if($num % 10 == 0){ echo $num; $flag = 1; break; } $num = (int)$num/10; echo $num; } if($flag){ echo "contain zero"; }else{ echo "contain not zero"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
8567.8