3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $couponHolder = array(); //$test = 'test'; $test = null; //$couponHolder['test'] = $test ? $test . '!' : null; $couponHolder['test'] = $test . ?: null; print_r($couponHolder);
Output for 5.3.0 - 5.4.5
Parse error: syntax error, unexpected '?' in /in/1Lr0B on line 7
Process exited with code 255.