3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $y = ['settings' => '']; $x = (array)$y['settings'] ?? []; var_dump($x);
based on cmgOG
Output for 7.0.28 - 7.2.11
array(1) { [0]=> string(0) "" }
Output for 5.6.38
Parse error: syntax error, unexpected '?' in /in/7rnvh on line 5
Process exited with code 255.