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[0]; echo $color['audi']; echo $color['volvo'];
based on j40AX
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4bmwbluenull