3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = createArray('id', "a"); echo $arr['jiraId']; echo $arr['casinoCode']; echo $arr['whatever']; function createArray($jiraId = null, $casinoCode = null) : array { if ($casinoCode){ echo "CASINO"; } return array('jiraId' => $jiraId, 'casinoCode' => $casinoCode); }
based on bqN8r
Output for hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
CASINOida Notice: Undefined index: whatever in /in/orIiH on line 6
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting '{' in /in/orIiH on line 8
Process exited with code 255.