3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "သဥ℃ဢ"; for ($i = 0; $i < mb_strlen($str); $i++) { var_dump(mb_substr($data, $i, 1)); }
Output for 5.6.8 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) ""
Output for 5.0.4 - 5.5.35
Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) ""
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) "" Notice: Undefined variable: data in /in/NtogW on line 5 string(0) ""