3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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."; } }
based on tmLiR
Output for 5.4.2 - 7.2.0
1 5 a%3A2%3A%7Bi%3A0%3Bs%3A4%3A%22qweq%22%3Bi%3A1%3Bs%3A4%3A%22that%22%3B%7DOh Sorry.. This isn't a crazy input.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/GVJM6 on line 12
Process exited with code 255.