3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string4="Featuring"; $pos="Featuring"; while(($pos = strpos($string, ',',$pos)) !== FALSE){ $count++; $pos++; // This ends } echo $count;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $string in /in/29AIt on line 4 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/29AIt on line 4 Fatal error: Uncaught TypeError: strpos(): Argument #3 ($offset) must be of type int, string given in /in/29AIt:4 Stack trace: #0 /in/29AIt(4): strpos('', ',', 'Featuring') #1 {main} thrown in /in/29AIt on line 4
Process exited with code 255.

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