3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h='my home is my castle'; $n='is'; $part = stristr($h,$n,true); $part2 = stristr($h,$n); if($pos=stripos($h,$n)) $part3=substr($h,0,$pos); $h=strtolower($h); $n=strtolower($n); if($pos=strpos($h,$n)) $part4=substr($h,0,$pos); echo "This is my: $part\n"; echo "That is my: $part2\n"; echo "Also, this: $part3\n"; echo "This too: $part4\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
This is my: my home That is my: is my castle Also, this: my home This too: my home

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:
75.98 ms | 401 KiB | 8 Q