3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_crazy_input = chr(0)."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"; $flag = 'hi'; echo urlencode(serialize(['qweq','that'])); if($position !== false && $length < 4) { echo $flag; } else { echo "Oh Sorry.. This isn't a crazy input."; } }

preferences:
56.51 ms | 402 KiB | 5 Q