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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
0 4 1Oh Sorry.. This isn't a crazy input.
Output for Array change keys
0 4 1Oh Sorry.. This isn't a crazy input.
Output for Lexical anon
0 4 1Oh Sorry.. This isn't a crazy input.

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