3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = "2_【23区・千葉】"; echo strlen( $tmp ) *(-1) + 3 ; $tmp = mb_strimwidth($tmp , strlen( $tmp ) *(-1) + 3 , strlen($tmp ) - 3 ); echo $tmp ;
Output for git.master, git.master_jit, rfc.property-hooks
-19 Fatal error: Uncaught ValueError: mb_strimwidth(): Argument #2 ($start) is out of range in /in/5gAZd:4 Stack trace: #0 /in/5gAZd(4): mb_strimwidth('2_\xE3\x80\x9023\xE5\x8C\xBA\xE3\x83\xBB\xE5\x8D...', -19, 19) #1 {main} thrown in /in/5gAZd 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:
54.31 ms | 401 KiB | 8 Q