3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'lorem ipsum'; for ($length = 0; isset($str[$i]); $i++); echo $length;
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: i in /in/28U15 on line 5 Notice: Undefined variable: i in /in/28U15 on line 5 0
Output for hhvm-3.12.0
Notice: Undefined variable: i in /in/28U15 on line -1 0
Output for hhvm-3.10.0
Notice: Undefined variable: i in /in/28U15 on line 5 0
Output for 5.0.4 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined variable: i in /in/2iYL3 on line 5 Notice: Undefined variable: i in /in/2iYL3 on line 5 0
Output for 4.3.3 - 5.0.3
Notice: Undefined variable: i in /in/2iYL3 on line 5 Notice: Undefined variable: i in /in/2iYL3 on line 5 0
Output for 4.3.1 - 4.3.2
Notice: Undefined variable: i in /in/2iYL3 on line 5 Notice: Undefined variable: i in /in/2iYL3 on line 5 Notice: Uninitialized string offset: 11 in /in/2iYL3 on line 5 0
Output for 4.3.0
Notice: Undefined variable: i in /in/28U15 on line 5 Notice: Undefined variable: i in /in/28U15 on line 5 Notice: Uninitialized string offset: 11 in /in/28U15 on line 5 0