3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(iconv_substr('',0,10,'utf-8')); var_dump(substr('',0,10)); var_dump(mb_substr('',0,10));
based on S4R1N

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
string(0) "" string(0) "" string(0) ""
Output for branch php-master+opcache
string(0) "" string(0) "" string(0) ""
Output for branch php-master+jit
string(0) "" string(0) "" string(0) ""
Output for Typed properties v2
string(0) "" string(0) "" string(0) ""
Output for Arrow functions
string(0) "" string(0) "" string(0) ""
Output for Object typehint
string(0) "" string(0) "" string(0) ""
Output for Array change keys
bool(false) string(0) "" string(0) ""
Output for Lexical anon
bool(false) bool(false) string(0) ""

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