3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = $_GET['var']??'no definido'; $var = isset($_GET['var'])?$_GET['var']:'no definido'; $defecto = 'nada'; $var = $_POST['var']?? $_GET['var']?? $defecto; echo $var;
based on Tj8Ef
Output for 7.0.0 - 7.2.0
nada
Output for 5.3.21 - 5.6.21
Parse error: syntax error, unexpected '?' in /in/Yf2q7 on line 4
Process exited with code 255.