3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n1 = 'queryselector'; $n2 = 'que'; // echo $n1, $n2; if (strpos($n1,$n2) !== '') { if (strlen($n2) > 0) { echo 'Find substring at position: ' . strpos($n1, $n2); if (substr($n1, 0, strlen($n2)) == $n2) { echo ' & is at Starting.'; } else if (substr($n1, '-'.strlen($n2)) == $n2) { echo ' & is at Ending.'; } else { echo ' & is in Between.'; } } }
Output for git.master, git.master_jit, rfc.property-hooks
Find substring at position: 0 & is at Starting.

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:
159.32 ms | 405 KiB | 5 Q