3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hola = null; var_dump( $hola??'no definido' ); echo "\n"; var_dump( $hola?:'no definido' ); echo "\n"; var_dump( $_GET['parametro']??'no' );
based on pd2Do
Output for 7.0.0 - 7.2.0
string(11) "no definido" string(11) "no definido" string(2) "no"
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/FXEEQ on line 4
Process exited with code 255.