3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ltActive = null; $rtActive = 1; if($ltActive && $rtActive){ $class = 'class when both sidebars are active'; }else(!$ltActive && !$rtActive){ $class = 'class when both sidebars are inactive'; }else{ $class = 'class when only one of the sidebars is active (either one)'; } print $class;
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '{' in /in/EMR9O on line 9
Process exited with code 255.