3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $m="echo 'enter the no'"; if($m%2==0) { echo 'the given no is even'; } else echo 'odd';
based on CkUep
Output for 7.1.0
Warning: A non-numeric value encountered in /in/WTnNk on line 3 the given no is even
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
the given no is even