3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array( 'id_rating_review' => 'foo', ); $first = array_shift($data); #var_dump($first); # var_dump(isset( # $first['id_rating_review'] # )); $string = 'string'; var_dump($string[0]); var_dump(isset($string['foo'])); var_dump($string['foo']);
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
string(1) "s" bool(false) Warning: Illegal string offset 'foo' in /in/OsrPG on line 14 string(1) "s"
Output for 5.0.0 - 5.0.2, hhvm-3.10.0 - 3.12.0
string(1) "s" bool(false) string(1) "s"
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.3.29
string(1) "s" bool(true) string(1) "s"