3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a['lol'] = 'fuu' or die; print($a); $a = array('lol' => 'fuu' or '0'); print($a);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/LZfFS on line 5 Array Notice: Array to string conversion in /in/LZfFS on line 8 Array
Output for 4.3.0 - 5.3.29
ArrayArray