- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '?' in /in/0CPoO on line 7
Process exited with code 255.
<?php
$val = [
];
$ternary = $val['exists'] ?: 'no-tern';
$nullCo = $val['exists'] ?? : 'no-null';
var_dump($ternary, $nullCo);