<?php $a = [];$result = $a['x'] ?? 100;var_dump($result);
Standard input is empty
int(100)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!