3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = true; $b = false; $arr = array(); $arr[] = 'asd'; echo $arr ? 'true' : 'false'; echo "errors: $arr"; ?>
Output for 5.4.0 - 7.1.0
true Notice: Array to string conversion in /in/pL6WT on line 8 errors: Array
Output for 4.3.0 - 5.3.29
trueerrors: Array