3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) ); echo iconv_substr( $string , 6 , null , 'utf-8' )."\n"; echo iconv_substr( $string , 6 , 4 , 'utf-8' )."\n"; echo iconv_substr( $string , 6 , -4 )."\n"; echo iconv_substr( $string , -4 , null , 'utf-8' )."\n"; echo "After setting internal encoding\n"; iconv_set_encoding("internal_encoding", "UTF-8"); echo iconv_substr( $string , 6 )."\n"; echo iconv_substr( $string , 6 , 4 )."\n"; echo iconv_substr( $string , 6 , -4 )."\n"; echo iconv_substr( $string , -4 )."\n"; exit(0);
Output for git.master, git.master_jit, rfc.property-hooks
Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 5 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 7 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 9 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 11 After setting internal encoding Deprecated: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /in/aO3RF on line 15 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 17 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 19 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 21 Notice: iconv_substr(): Detected an illegal character in input string in /in/aO3RF on line 23

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:
44.54 ms | 403 KiB | 8 Q