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 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:2:{i:0;s:4:"qweq";i:1;s:4:"that";}Oh 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:
57.77 ms | 401 KiB | 8 Q