3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array("condition" => "test"); if ($x['condition']['test']) echo "test";
Output for 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Warning: Illegal string offset 'test' in /in/uIgmZ on line 5 test
Output for 4.3.0 - 5.3.29, hhvm-3.12.0
test
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.17
Warning: Illegal string offset 'test' in /in/6dqRI on line 5 test