3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $admin = true; $moderator = true; echo ($admin ===true) ? 'You are an admin' . (($moderator ===true) ? 'You are also a moderator' : '') : 'You are not an admin';
based on UbRis
Output for 4.3.0 - 7.2.0
You are an adminYou are also a moderator