3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'ab'; $a = strlen($str); echo $a; if ($a > 1) { echo "\na > 1"; } if (isset($str[1])) { echo "\nisset 1"; } echo "\n\n-----\n".$str[0];
based on tdHM2
Output for 5.6.0 - 7.3.0beta1
2 a > 1 isset 1 ----- a