3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $action = $p['action'] ?: 'index_false'; echo $action."\n"; $action = @$p['action'] ?: 'index_false_wn'; echo $action."\n"; $action = $p['action'] ?? 'index_null'; echo $action."\n";
based on Whr70
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: p in /in/fmmid on line 3 index_false index_false_wn index_null
Output for 5.3.18 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/fmmid on line 7
Process exited with code 255.