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."; } }
Output for git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.94 ms | 401 KiB | 8 Q