3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = '<html'; echo "XXX v is"; echo "len ".strlen($v)."\n"; echo substr($v,1)."\n "; echo ord($v[0])."\n "; echo $v."\n "; flush(); echo "echoing done\n"; echo "vd1\n"; echo "vd2\n"; var_dump($v); echo "AFTER\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
XXX v islen 5 html 60 <html echoing done vd1 vd2 string(5) "<html" AFTER