3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myIntegerOrComplexObject = new stdClass(); switch( $myIntegerOrComplexObject ) { case 1: echo "blub"; break; case 2: echo "bla"; break; default: echo "This is probably an object or a int other than 1 & 2"; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
160.78 ms | 1321 KiB | 10 Q