3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = ‘cat’; var_dump(isset($string[‘type’]));
Output for 7.2.0
Warning: Use of undefined constant ‘cat’ - assumed '‘cat’' (this will throw an Error in a future version of PHP) in /in/87Y0J on line 3 Warning: Use of undefined constant ‘type’ - assumed '‘type’' (this will throw an Error in a future version of PHP) in /in/87Y0J on line 4 bool(false)
Output for 5.4.11 - 7.1.10
Notice: Use of undefined constant ‘cat’ - assumed '‘cat’' in /in/87Y0J on line 3 Notice: Use of undefined constant ‘type’ - assumed '‘type’' in /in/87Y0J on line 4 bool(false)
Output for 5.3.21 - 5.3.29
Notice: Use of undefined constant ‘cat’ - assumed '‘cat’' in /in/87Y0J on line 3 Notice: Use of undefined constant ‘type’ - assumed '‘type’' in /in/87Y0J on line 4 bool(true)