- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'instance' (T_STRING) in /in/CrVmH on line 7
Process exited with code 255.
<?php
$a = new StdClass();
switch (true) {
case $a instance of StdClass: {
echo "caught it";
break;
}
default : {
echo "default";
}
}