3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = stristr('my home is my castle','is',true); $part2 = stristr('my home is my castle','is'); if($pos=stripos($h,$n)) $part3=substr($h,0,$pos); echo "This is my: $part\n"; echo "That is my: $part2\n"; echo "Also, this: $part3\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $h in /in/M1ZYZ on line 4 Warning: Undefined variable $n in /in/M1ZYZ on line 4 Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/M1ZYZ on line 4 Deprecated: stripos(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/M1ZYZ on line 4 This is my: my home That is my: is my castle Warning: Undefined variable $part3 in /in/M1ZYZ on line 7 Also, this:

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:
54.59 ms | 402 KiB | 8 Q