3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $your_crazy_input = "flag"; if(isset($your_crazy_input)) { $position =strpos($your_crazy_input, "flag"); $length = strlen($your_crazy_input); echo $position; echo "\n"; echo $length; echo "\n"; echo $position !== false; if($position !== false && $length < 4) { echo $flag; } else { echo "Oh Sorry.. This isn't a crazy input."; } }
based on VXeST
Output for 5.4.0 - 7.2.0
0 4 1Oh Sorry.. This isn't a crazy input.