3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array("condition" => "test"); if ($x['condition']['test']) { echo "test"; } echo PHP_EOL; print_r($x); echo $x['condition'];
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Illegal string offset 'test' in /in/AONAk on line 4 test Array ( [condition] => test ) test
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.3.29, hhvm-3.12.0
test Array ( [condition] => test ) test
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
test Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/AONAk on line 8 PHP_EOLArray ( [condition] => test ) test