3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cars=array("bmw","benz","volvo","audi"); $arrlength= count($cars); $color['benz']="red"; $color['bmw']="green"; $color['audi']="blue"; $color['volvo']="null"; echo $arrlength; echo $cars; echo $color['audi']; echo $color['volvo'];
based on 6XrrL
Output for 5.4.0 - 7.1.0
4 Notice: Array to string conversion in /in/j40AX on line 9 Arraybluenull
Output for 4.3.0 - 5.3.29
4Arraybluenull