3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cn_substrr($str,$slen,$startdd=0) { $str = cn_substr(stripslashes($str),$slen,$startdd); return addslashes($str); } $a = '测试这是一个测试'; //$a = 'xxxxbbbbbnnn'; $b = cn_substrr($a,5,0); var_dump($b); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function cn_substr() in /in/tO0m5:5 Stack trace: #0 /in/tO0m5(15): cn_substrr('\xE6\xB5\x8B\xE8\xAF\x95\xE8\xBF\x99\xE6\x98\xAF\xE4\xB8\x80...', 5, 0) #1 {main} thrown in /in/tO0m5 on line 5
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:
47.94 ms | 401 KiB | 8 Q