3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(['0', '3', 'abc', null, false]as$val) { echo $val??($val==='0')??''; }
based on VoTLM
Output for 7.0.0 - 7.3.0rc3
03abc
Output for 5.6.0 - 5.6.25
Parse error: syntax error, unexpected '?' in /in/Km1Mq on line 5
Process exited with code 255.