3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = 'This is a string'; if ($arr['Something'] == 'Cool') { echo 'Cool'; } else { echo 'Nope'; }
Output for 5.4.0 - 7.3.0rc6
Warning: Illegal string offset 'Something' in /in/0BXCs on line 3 Nope
Output for 4.3.0 - 5.3.29
Nope