3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = $_GET['name'] ?? 'nothing'; $name = isset($_GET['name']) ? $_GET['name'] : 'nothing'; echo $name;
based on dq0rA
Output for 7.0.0 - 7.3.0rc4
nothing
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/7jj2c on line 3
Process exited with code 255.