3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; echo 'isset function:' . PHP_EOL; var_dump(isset($a['foo'])); var_dump(isset($a['foo']['bar'])); echo PHP_EOL . 'NULL coalesce operator:' . PHP_EOL; var_dump($a['foo'] ?? false); var_dump($a['foo']['bar'] ?? false);
Output for hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0alpha1
isset function: bool(false) bool(false) NULL coalesce operator: bool(false) bool(false)
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '?' in /in/WvU13 on line 10
Process exited with code 255.