3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const FROM_DB = 1; const PUBLIC_ONLY = 0; public static function getSomething($input, $db = 0, $public = 1) { return $input; } } echo MyClass::getSomething( 'test' | MyClass::FROM_DB | MyClass::PUBLIC_ONLY ); echo MyClass::getSomething( 6 | MyClass::FROM_DB | MyClass::PUBLIC_ONLY ); echo MyClass::getSomething( 'test', MyClass::FROM_DB | MyClass::PUBLIC_ONLY );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.83 ms | 2431 KiB | 8 Q