3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function show_flags ($flags) { if ($flags & 0) { echo "You are P0" + PHP_EOL; } if ($flags & 1) { echo "You are P1" + PHP_EOL; } if ($flags & 2) { echo "You are P2" + PHP_EOL; } if ($flags & 3) { echo "You are P3" + PHP_EOL; } } show_flags( 3 );
based on tTZnW
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/AlVDD on line 8 Warning: A non-numeric value encountered in /in/AlVDD on line 8 0 Warning: A non-numeric value encountered in /in/AlVDD on line 11 Warning: A non-numeric value encountered in /in/AlVDD on line 11 0 Warning: A non-numeric value encountered in /in/AlVDD on line 14 Warning: A non-numeric value encountered in /in/AlVDD on line 14 0
Output for 5.3.21 - 7.0.20
000