3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array("condition" => "test"); if ($x['condition']['test']) { echo "test"; } echo '<br>'; print_r($x); echo $x['condition'];
Output for 5.4.18 - 7.1.0
Warning: Illegal string offset 'test' in /in/CA4TK on line 4 test<br>Array ( [condition] => test ) test
Output for 5.4.0 - 5.4.17
Warning: Illegal string offset 'test' in /in/6Q3OD on line 4 test<br>Array ( [condition] => test ) test
Output for 4.3.0 - 5.3.29
test<br>Array ( [condition] => test ) test