3v4l.org

run code in 300+ PHP versions simultaneously
<?php $charset=str_repeat("abcdefghijklmnopqrstuvwxyz",2); $msg="tm bcsv qolfp f'dmvd xuhm exl tgak hlrkiv sydg hxm qiswzzwf qrf oqdueqe dpae resd wndo liva bu vgtokx sjzk hmb rqch fqwbg fmmft seront sntsdr pmsecq"; $format=explode(" ",$msg); for($element=0;$element<=count($format);$element++){ $string=$format[$element]; $len=strlen($string); $key=$element+1; print $string." ".$len." ".$key."\n"; for($char=0;$char<=$len-1;$char++) $l=strpos($charset,substr($string,$char+1,1)); print substr($string,$char+1,1);#$n=substr($charset,$l+$key,1); print $n."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
tm 2 1 bcsv 4 2 qolfp 5 3 f'dmvd 6 4 xuhm 4 5 exl 3 6 tgak 4 7 hlrkiv 6 8 sydg 4 9 hxm 3 10 qiswzzwf 8 11 qrf 3 12 oqdueqe 7 13 dpae 4 14 resd 4 15 wndo 4 16 liva 4 17 bu 2 18 vgtokx 6 19 sjzk 4 20 hmb 3 21 rqch 4 22 fqwbg 5 23 fmmft 5 24 seront 6 25 sntsdr 6 26 pmsecq 6 27 Warning: Undefined array key 27 in /in/iQj2q on line 6 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/iQj2q on line 7 0 28 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/iQj2q on line 10

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:
122.44 ms | 407 KiB | 5 Q